UA-Bot/docker-compose.yml

33 lines
596 B
YAML
Raw Normal View History

2023-07-09 20:53:49 +00:00
version: '3'
services:
bot:
2023-07-13 07:54:25 +00:00
image: ghcr.io/ua-fediland/ua-bot:main
2023-07-09 20:53:49 +00:00
env_file:
- ./.env
volumes:
2023-07-13 08:44:11 +00:00
- ./nicknames.txt:/app/nicknames.txt
- ./domains.txt:/app/domains.txt
depends_on:
- db
networks:
- default
db:
restart: unless-stopped
restart: always
image: postgres:15-alpine
networks:
- default
env_file:
- .db.env
volumes:
- ./db:/var/lib/postgresql/data
healthcheck:
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
interval: 5s
retries: 20
networks:
default: