30 lines
780 B
YAML
30 lines
780 B
YAML
---
|
|
version: "3"
|
|
services:
|
|
werefox-discord-bot:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: werefox-discord-bot:latest
|
|
container_name: wdb_container_service
|
|
restart: always
|
|
links:
|
|
- postgres
|
|
volumes:
|
|
- ./volumes/python/lib:/home/werefox/lib
|
|
- ./volumes/python/data:/home/werefox/data
|
|
postgres:
|
|
image: postgres:13
|
|
restart: always
|
|
ports:
|
|
- 8131:8131
|
|
volumes:
|
|
- ./volumes/postgres/pg_data:/var/lib/postgresql/data/pg_data
|
|
- ./volumes/postgres/config:/config
|
|
environment:
|
|
POSTGRES_PASSWORD_FILE: /config/pgdb.key
|
|
POSTGRES_DB: werefox_prod
|
|
POSTGRES_USER: werefox
|
|
POSTGRES_HOST: localhost
|
|
POSTGRES_PORT: 8131
|
|
PGDATA: /var/lib/postgresql/data/pg_data
|