36 lines
No EOL
982 B
YAML
36 lines
No EOL
982 B
YAML
x-common: &common
|
|
restart: always
|
|
env_file:
|
|
- .env
|
|
|
|
services:
|
|
web:
|
|
<<: *common
|
|
image: ghcr.io/xe/x/httpdebug
|
|
entrypoint: ["/ko-app/httpdebug", "--bind", ":8000"]
|
|
#image: badbl0cks/pkmntrade-club:stable
|
|
environment:
|
|
- DEBUG=False
|
|
- DISABLE_SIGNUPS=True
|
|
- PUBLIC_HOST=pkmntrade.club
|
|
- ALLOWED_HOSTS=pkmntrade.club,127.0.0.1
|
|
labels:
|
|
- "enable_gatekeeper=true"
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 4
|
|
# healthcheck:
|
|
# test: ["CMD", "curl", "-f", "http://127.0.0.1:8000/health"]
|
|
# interval: 30s
|
|
# timeout: 10s
|
|
# retries: 3
|
|
# start_period: 30s
|
|
# celery:
|
|
# <<: *common
|
|
# image: badbl0cks/pkmntrade-club:stable
|
|
# environment:
|
|
# - DEBUG=False
|
|
# - DISABLE_SIGNUPS=True
|
|
# - PUBLIC_HOST=pkmntrade.club
|
|
# - ALLOWED_HOSTS=pkmntrade.club,127.0.0.1
|
|
# command: ["celery", "-A", "pkmntrade_club.django_project", "worker", "-l", "INFO", "-B", "-E"] |