Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Update bugsink.yaml (#5178)

Neo031225b9f1d0
diff --git a/templates/compose/bugsink.yaml b/templates/compose/bugsink.yaml
index 787852ff89..d9f6787ce8 100644
--- a/templates/compose/bugsink.yaml
+++ b/templates/compose/bugsink.yaml
@@ -32,13 +32,21 @@ services:
- SECRET_KEY=$SERVICE_PASSWORD_64_BUGSINK
- CREATE_SUPERUSER=admin:$SERVICE_PASSWORD_BUGSINK
- SERVICE_FQDN_BUGSINK_8000
- - BASE_URL=$SERVICE_FQDN_BUGSINK_8000
- - DATABASE_URL=mysql://${SERVICE_USER_BUGSINK}:$SERVICE_PASSWORD_BUGSINK@mysql:3306/${MYSQL_DATABASE:-bugsink}
+ - 'BASE_URL=${SERVICE_FQDN_BUGSINK_8000}'
+ - 'DATABASE_URL=mysql://${SERVICE_USER_BUGSINK}:$SERVICE_PASSWORD_BUGSINK@mysql:3306/${MYSQL_DATABASE:-bugsink}'
+ - ALLOWED_HOSTS=${SERVICE_FQDN_BUGSINK_8000}
+ - 'SECURE_PROXY_SSL_HEADER=HTTP_X_FORWARDED_PROTO,https'
+ - 'CSRF_TRUSTED_ORIGINS=${SERVICE_FQDN_BUGSINK_8000}'
+ - USE_X_FORWARDED_HOST=True
+ - 'GUNICORN_CMD_ARGS=--forwarded-allow-ips="*"'
+ labels:
+ - traefik.enable=true
+ - traefik.http.routers.bugsink.rule=Host(`${SERVICE_FQDN_BUGSINK_8000}`)
+ - traefik.http.routers.bugsink.entrypoints=websecure
+ - traefik.http.routers.bugsink.tls=true
depends_on:
mysql:
condition: service_healthy
- healthcheck:
- test: ["CMD-SHELL", "python -c 'import requests; requests.get(\"http://localhost:8000/\").raise_for_status()'"]
- interval: 5s
- timeout: 20s
- retries: 10
+
+volumes:
+ my-datavolume: