mic-bot/dev.docker-compose.yml

39 lines
763 B
YAML
Raw Permalink Normal View History

2024-10-24 14:39:42 +00:00
secrets:
db_password:
file: .secrets/db_password.txt
networks:
mic_bot_dev:
driver: bridge
services:
bot:
build: .
container_name: mic_bot_dev
restart: always
depends_on:
- postgres
environment:
- MIC_APPLY_MIGRATIONS=y
networks:
- mic_bot_dev
secrets:
- db_password
volumes:
- ./:/app
postgres:
container_name: mic_bot_postgres_dev
image: postgres:latest
restart: always
volumes:
- ./dev_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_dev
secrets:
- db_password