34 lines
661 B
YAML
34 lines
661 B
YAML
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
|
|
networks:
|
|
- mic_bot
|
|
secrets:
|
|
- db_password
|
|
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:
|
|
- db_password |