fix(docker): Add missing ALLOWED_HOSTS environment variables to docker-compose_web.yml and docker-compose_staging.yml to prevent security errors.
This commit is contained in:
parent
acbbc33efa
commit
b26ca10489
2 changed files with 12 additions and 9 deletions
|
|
@ -10,13 +10,14 @@ services:
|
||||||
- DEBUG=False
|
- DEBUG=False
|
||||||
- DISABLE_SIGNUPS=True
|
- DISABLE_SIGNUPS=True
|
||||||
- PUBLIC_HOST=staging.pkmntrade.club
|
- PUBLIC_HOST=staging.pkmntrade.club
|
||||||
|
- ALLOWED_HOSTS=staging.pkmntrade.club,127.0.0.1
|
||||||
labels:
|
labels:
|
||||||
- "enable_gatekeeper=true"
|
- "enable_gatekeeper=true"
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: 2
|
replicas: 2
|
||||||
# healthcheck:
|
# healthcheck:
|
||||||
# test: ["CMD", "curl", "-f", "http://127.0.0.1:8000"]
|
# test: ["CMD", "curl", "-f", "http://127.0.0.1:8000/health"]
|
||||||
# interval: 30s
|
# interval: 30s
|
||||||
# timeout: 10s
|
# timeout: 10s
|
||||||
# retries: 3
|
# retries: 3
|
||||||
|
|
@ -27,4 +28,5 @@ services:
|
||||||
- DEBUG=False
|
- DEBUG=False
|
||||||
- DISABLE_SIGNUPS=True
|
- DISABLE_SIGNUPS=True
|
||||||
- PUBLIC_HOST=staging.pkmntrade.club
|
- PUBLIC_HOST=staging.pkmntrade.club
|
||||||
|
- ALLOWED_HOSTS=staging.pkmntrade.club,127.0.0.1
|
||||||
command: ["celery", "-A", "pkmntrade_club.django_project", "worker", "-l", "INFO", "-B", "-E"]
|
command: ["celery", "-A", "pkmntrade_club.django_project", "worker", "-l", "INFO", "-B", "-E"]
|
||||||
|
|
@ -9,18 +9,18 @@ services:
|
||||||
image: ghcr.io/xe/x/httpdebug
|
image: ghcr.io/xe/x/httpdebug
|
||||||
entrypoint: ["/ko-app/httpdebug", "--bind", ":8000"]
|
entrypoint: ["/ko-app/httpdebug", "--bind", ":8000"]
|
||||||
#image: badbl0cks/pkmntrade-club:stable
|
#image: badbl0cks/pkmntrade-club:stable
|
||||||
#command: ["granian", "--interface", "wsgi", "pkmntrade_club.django_project.wsgi:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1", "--workers-kill-timeout", "180", "--access-log"]
|
|
||||||
environment:
|
environment:
|
||||||
- DEBUG=False
|
- DEBUG=False
|
||||||
- DISABLE_SIGNUPS=True
|
- DISABLE_SIGNUPS=True
|
||||||
- PUBLIC_HOST=pkmntrade.club
|
- PUBLIC_HOST=pkmntrade.club
|
||||||
|
- ALLOWED_HOSTS=pkmntrade.club,127.0.0.1
|
||||||
labels:
|
labels:
|
||||||
- "enable_gatekeeper=true"
|
- "enable_gatekeeper=true"
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: 4
|
replicas: 4
|
||||||
# healthcheck:
|
# healthcheck:
|
||||||
# test: ["CMD", "curl", "-f", "http://127.0.0.1:8000"]
|
# test: ["CMD", "curl", "-f", "http://127.0.0.1:8000/health"]
|
||||||
# interval: 30s
|
# interval: 30s
|
||||||
# timeout: 10s
|
# timeout: 10s
|
||||||
# retries: 3
|
# retries: 3
|
||||||
|
|
@ -32,4 +32,5 @@ services:
|
||||||
# - DEBUG=False
|
# - DEBUG=False
|
||||||
# - DISABLE_SIGNUPS=True
|
# - DISABLE_SIGNUPS=True
|
||||||
# - PUBLIC_HOST=pkmntrade.club
|
# - PUBLIC_HOST=pkmntrade.club
|
||||||
|
# - ALLOWED_HOSTS=pkmntrade.club,127.0.0.1
|
||||||
# command: ["celery", "-A", "pkmntrade_club.django_project", "worker", "-l", "INFO", "-B", "-E"]
|
# command: ["celery", "-A", "pkmntrade_club.django_project", "worker", "-l", "INFO", "-B", "-E"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue