Update docker-compose.yml

This commit is contained in:
Kitanit 2023-07-13 11:44:11 +03:00 committed by GitHub
parent f0077fabb8
commit 8739350b10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,8 +6,27 @@ services:
env_file: env_file:
- ./.env - ./.env
volumes: volumes:
- ./config.json:/app/config.json - ./nicknames.txt:/app/nicknames.txt
- ./nicknames.txt:/app/nicknames.txt - ./domains.txt:/app/domains.txt
- ./domains.txt:/app/domains.txt depends_on:
extra_hosts: - db
- host.docker.internal:host-gateway 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: