This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
werefox-discord-bot/docker-compose.yml

31 lines
912 B
YAML
Raw Normal View History

2021-08-27 17:24:24 -05:00
---
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