Files
templates/blueprints/bugsink/docker-compose.yml
Hayden Thorn e69fe112f9 Update Bugsink, Add BEHIND_HTTPS_PROXY env var to docker-compose (#290)
Introduces the BEHIND_HTTPS_PROXY environment variable to the bugsink service for configuring setups behind an HTTPS proxy. Default is set to 'false'; update as needed for SSL-enabled proxy deployments.
2025-08-22 23:35:39 -06:00

39 lines
1.1 KiB
YAML

services:
mysql:
image: mysql:8.4
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: $DB_PASSWORD
MYSQL_DATABASE: bugsink
volumes:
- my-datavolume:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "exit | mysql -h localhost -P 3306 -u root -p$$MYSQL_ROOT_PASSWORD" ] # 'exit |' closes the MySQL input prompt
interval: 1s
timeout: 20s
retries: 30
web:
image: bugsink/bugsink
depends_on:
mysql:
condition: service_healthy
restart: unless-stopped
ports:
- "8000"
environment:
SECRET_KEY: "${SECRET_KEY}"
CREATE_SUPERUSER: admin:${ADMIN_PASSWORD}
PORT: 8000
DATABASE_URL: mysql://root:${DB_PASSWORD}@mysql:3306/bugsink
BASE_URL: http://${MAIN_DOMAIN}
BEHIND_HTTPS_PROXY: "false" # Change this for setups behind a proxy w/ ssl enabled
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: