mic-bot/docker-compose.yml

39 lines
762 B
YAML
Raw Normal View History

2024-10-23 16:09:10 +00:00
secrets:
db_password:
file: .secrets/db_password.txt
networks:
mic_bot:
driver: bridge
services:
bot:
build: .
container_name: mic_bot
restart: always
depends_on:
- postgres
2024-10-24 08:35:13 +00:00
environment:
- MIC_APPLY_MIGRATIONS=y
2024-10-23 16:09:10 +00:00
networks:
- mic_bot
secrets:
- db_password
2024-10-24 14:39:42 +00:00
volumes:
- ./config.json:/app/config.json
2024-10-23 16:09:10 +00:00
postgres:
container_name: mic_bot_postgres
image: postgres:latest
restart: always
volumes:
- ./postgres_data:/var/lib/postgresql/data:rw
environment:
POSTGRES_USER: mic
POSTGRES_DB: mic
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
user: "${USER_ID:-1000}:${GID:-1000}"
networks:
- mic_bot
secrets:
2024-10-24 14:39:42 +00:00
- db_password