formaptix-server/docker-compose.yml

31 lines
733 B
YAML
Raw Normal View History

2024-08-08 22:14:02 +03:00
version: "3"
services:
2024-08-18 08:28:57 +03:00
formaptix-server:
2024-08-08 22:14:02 +03:00
build: "."
restart: "always"
environment:
2024-08-18 08:28:57 +03:00
- DATABASE=postgresql+asyncpg://${DATABASE_USER}:${DATABASE_PASSWORD}@formaptix-database:5432/${DATABASE_NAME}
2024-08-08 22:14:02 +03:00
- SECRET=${SECRET}
- PORT=${PORT}
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
- DISABLE_ADMIN=${DISABLE_ADMIN}
2024-08-08 22:14:02 +03:00
ports:
- ${PORT}:${PORT}
depends_on:
2024-08-18 08:28:57 +03:00
- formaptix-database
2024-08-08 22:14:02 +03:00
2024-08-18 08:28:57 +03:00
formaptix-database:
2024-08-08 22:14:02 +03:00
image: "postgres:bullseye"
restart: "always"
environment:
- POSTGRES_USER=${DATABASE_USER}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_DB=${DATABASE_NAME}
volumes:
2024-08-18 08:28:57 +03:00
- formaptix-database:/var/lib/postgresql/data
2024-08-08 22:14:02 +03:00
volumes:
2024-08-18 08:28:57 +03:00
formaptix-database: