mirror-nourybot/example.docker-compose

29 lines
625 B
Text
Raw Normal View History

2023-12-03 20:50:38 +01:00
services:
nourybot:
build:
context: .
dockerfile: Dockerfile
2024-07-17 22:57:40 +02:00
restart: unless-stopped
2023-12-03 20:50:38 +01:00
env_file: .env
2024-07-17 22:57:40 +02:00
depends_on:
postgres:
condition: service_healthy
volumes:
- "/tmp/CHANGEME/uploads:/public/uploads"
ports:
2024-07-17 22:57:40 +02:00
- "127.0.0.1:8080:8080"
postgres:
image: postgres
restart: unless-stopped
env_file: .env
2024-07-17 22:57:40 +02:00
volumes:
- nourybotdb:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 5
start_period: 20s
2023-12-03 20:50:38 +01:00
volumes:
2024-07-17 22:57:40 +02:00
nourybotdb: