forked from bugsink/bugsink
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-sample.yaml
More file actions
46 lines (44 loc) · 1.7 KB
/
docker-compose-sample.yaml
File metadata and controls
46 lines (44 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
services:
db:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_USER: bugsinkuser
POSTGRES_PASSWORD: your_super_secret_password # Change this
POSTGRES_DB: bugsink
volumes:
- db-data:/var/lib/postgresql/data
healthcheck:
test: pg_isready -h db
retries: 5
start_period: 10s
interval: 5s
timeout: 5s
web:
image: bugsink/bugsink:2
depends_on:
db:
condition: service_healthy
restart: unless-stopped
ports:
- "8000:8000"
environment:
SECRET_KEY: django-insecure-RMLYThim9NybWgXiUGat32Aa0Qbgqscf4NPDQuZO2glcZPOiXn # Change this (and remove django-insecure prefix), e.g. openssl rand -base64 50
CREATE_SUPERUSER: email:password # Change this (or remove it and execute 'createsuperuser' against the running container)
PORT: 8000
DATABASE_URL: postgresql://bugsinkuser:your_super_secret_password@db:5432/bugsink # Change password to match POSTGRES_PASSWORD above
BEHIND_HTTPS_PROXY: "false" # Change this for setups behind a proxy w/ ssl enabled
USE_X_FORWARDED_HOST: "false" # Set to true if your proxy passes the original host via X-Forwarded-Host
# Prefer X-Real-IP when your proxy supports it. To use X-Forwarded-For instead, set USE_X_REAL_IP to false and
# uncomment both settings below.
# USE_X_REAL_IP: "false"
# USE_X_FORWARDED_FOR: "true"
# X_FORWARDED_FOR_PROXY_COUNT: "1"
BASE_URL: "http://localhost:8000"
healthcheck:
test: ["CMD-SHELL", "python -c 'import requests; requests.get(\"http://localhost:8000/\").raise_for_status()'"]
interval: 5s
timeout: 20s
retries: 10
volumes:
db-data: