mirror of
https://github.com/bugsink/bugsink.git
synced 2026-05-05 06:20:20 -05:00
Add sample docker-compose
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:latest
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: change_your_passwords_for_real_usage # TODO: Change this
|
||||
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" ]
|
||||
interval: 1s
|
||||
timeout: 20s
|
||||
retries: 30
|
||||
|
||||
web:
|
||||
image: bugsink/bugsink
|
||||
depends_on:
|
||||
mysql:
|
||||
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: admin:admin # Change this (or remove it and execute 'createsuperuser' against the running container)
|
||||
PORT: 8000
|
||||
DATABASE_URL: mysql://root:change_your_passwords_for_real_usage@mysql:3306/bugsink
|
||||
|
||||
volumes:
|
||||
my-datavolume:
|
||||
Reference in New Issue
Block a user