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.
covid-19-discord-bot/docker-compose.yml

52 lines
1.1 KiB
YAML
Raw Normal View History

---
version: "3"
services:
covidbot:
build:
context: .
dockerfile: Dockerfile
image: covidbot:latest
user: covidbot
container_name: covidbot_container_service
networks:
- net
links:
- postgres
volumes:
- ./lib:/home/covidbot/lib
- ./config:/home/covidbot/config
covidreport:
build:
context: .
dockerfile: Dockerfile_report
image: covidreport:latest
user: covidreport
container_name: covidreport_container_service
networks:
- net
links:
- postgres
volumes:
- ./lib:/home/covidreport/lib
- ./config:/home/covidreport/config
postgres:
image: postgres:alpine
networks:
- net
ports:
- 5432:5432
volumes:
- ./pg_data:/var/lib/postgresql/data/pg_data
- ./config:/config
environment:
POSTGRES_PASSWORD_FILE: /config/pgdb.key
POSTGRES_DB: covid_prod
POSTGRES_USER: covidbot
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432
PGDATA: /var/lib/postgresql/data/pg_data
networks:
net:
volumes:
pg_data: