43 lines
862 B
YAML
43 lines
862 B
YAML
services:
|
|
db:
|
|
image: postgres:17
|
|
restart: always
|
|
env_file: ./app/.env.db
|
|
ports:
|
|
- "127.0.0.1:5432:5432"
|
|
volumes:
|
|
- ./data/postgres:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
flask-register:
|
|
build:
|
|
context: ./app
|
|
dockerfile: Dockerfile
|
|
env_file: ./app/.env.web
|
|
ports:
|
|
- "127.0.0.1:4444:4444"
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
restart: on-failure
|
|
|
|
cache:
|
|
image: redis:8
|
|
restart: always
|
|
volumes:
|
|
- ./data/redis:/data
|
|
|
|
discord-bot:
|
|
build:
|
|
context: ./discord
|
|
dockerfile: Dockerfile
|
|
env_file: ./discord/.env.bot
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
restart: on-failure
|