fix: remove docker-compose.yml from tracking, add example template #136
1
.gitignore
vendored
1
.gitignore
vendored
@ -133,6 +133,7 @@ dmypy.json
|
||||
storage*
|
||||
storage/paper-dynasty-service-creds.json
|
||||
*compose.yml
|
||||
!docker-compose.example.yml
|
||||
**.db
|
||||
**/htmlcov
|
||||
.vscode/**
|
||||
|
||||
67
docker-compose.example.yml
Normal file
67
docker-compose.example.yml
Normal file
@ -0,0 +1,67 @@
|
||||
services:
|
||||
discord-app:
|
||||
image: manticorum67/paper-dynasty-discordapp:dev
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /path/to/dev-storage:/usr/src/app/storage
|
||||
- /path/to/dev-logs:/usr/src/app/logs
|
||||
environment:
|
||||
- PYTHONBUFFERED=0
|
||||
- GUILD_ID=your-guild-id-here
|
||||
- BOT_TOKEN=your-bot-token-here
|
||||
# - API_TOKEN=your-old-api-token-here
|
||||
- LOG_LEVEL=INFO
|
||||
- API_TOKEN=your-api-token-here
|
||||
- SCOREBOARD_CHANNEL=your-scoreboard-channel-id-here
|
||||
- TZ=America/Chicago
|
||||
- PYTHONHASHSEED=1749583062
|
||||
- DATABASE=Dev
|
||||
- DB_USERNAME=postgres
|
||||
- DB_PASSWORD=your-db-password-here
|
||||
- DB_URL=db
|
||||
- DB_NAME=postgres
|
||||
- RESTART_WEBHOOK_URL=your-discord-webhook-url-here
|
||||
networks:
|
||||
- backend
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- 8081:8081
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "python3 -c 'import urllib.request; urllib.request.urlopen(\"http://localhost:8081/health\", timeout=5)' || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
|
||||
db:
|
||||
image: postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_PASSWORD: your-db-password-here
|
||||
volumes:
|
||||
- pd_postgres:/var/lib/postgresql
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready"]
|
||||
interval: 1s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
networks:
|
||||
- backend
|
||||
|
||||
adminer:
|
||||
image: adminer
|
||||
restart: always
|
||||
ports:
|
||||
- 8080:8080
|
||||
networks:
|
||||
- backend
|
||||
|
||||
|
||||
networks:
|
||||
backend:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
pd_postgres:
|
||||
Loading…
Reference in New Issue
Block a user