mirror of
https://github.com/grey-cat-1908/formaptix-server.git
synced 2024-11-11 18:57:27 +03:00
31 lines
No EOL
733 B
YAML
31 lines
No EOL
733 B
YAML
version: "3"
|
|
|
|
services:
|
|
formaptix-server:
|
|
build: "."
|
|
restart: "always"
|
|
|
|
environment:
|
|
- DATABASE=postgresql+asyncpg://${DATABASE_USER}:${DATABASE_PASSWORD}@formaptix-database:5432/${DATABASE_NAME}
|
|
- SECRET=${SECRET}
|
|
- PORT=${PORT}
|
|
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
|
- DISABLE_ADMIN=${DISABLE_ADMIN}
|
|
ports:
|
|
- ${PORT}:${PORT}
|
|
depends_on:
|
|
- formaptix-database
|
|
|
|
formaptix-database:
|
|
image: "postgres:bullseye"
|
|
restart: "always"
|
|
|
|
environment:
|
|
- POSTGRES_USER=${DATABASE_USER}
|
|
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
|
|
- POSTGRES_DB=${DATABASE_NAME}
|
|
volumes:
|
|
- formaptix-database:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
formaptix-database: |