mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
Bugsink template (not yet tested) (#68)
* Bugsink template (not yet tested) See #56 * Update blueprints/bugsink/docker-compose.yml * Update blueprints/bugsink/template.toml * Update blueprints/bugsink/template.toml --------- Co-authored-by: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com>
This commit is contained in:
parent
6ba3314347
commit
8c1085741b
BIN
blueprints/bugsink/bugsink.png
Normal file
BIN
blueprints/bugsink/bugsink.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 49 KiB |
37
blueprints/bugsink/docker-compose.yml
Normal file
37
blueprints/bugsink/docker-compose.yml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
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}
|
||||||
|
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:
|
18
blueprints/bugsink/template.toml
Normal file
18
blueprints/bugsink/template.toml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
[variables]
|
||||||
|
main_domain = "${domain}"
|
||||||
|
secret_key = "#&^%@!z$*p9s8r7q6p5o4n3m2l1k0j9h8g7f6e5d4c3b2a1Z0Y9X8W7V6U5T4S3R2Q1P0O9N8M7L6K5J4I3H2G1F0E9D8C7B6A5"
|
||||||
|
db_password = "${password:16}"
|
||||||
|
admin_password = "${password:16}"
|
||||||
|
|
||||||
|
|
||||||
|
[config]
|
||||||
|
[config.env]
|
||||||
|
DB_PASSWORD = "${db_password}"
|
||||||
|
MAIN_DOMAIN = "${main_domain}"
|
||||||
|
SECRET_KEY = "${secret_key}"
|
||||||
|
ADMIN_PASSWORD = "${admin_password}"
|
||||||
|
|
||||||
|
[[config.domains]]
|
||||||
|
serviceName = "web"
|
||||||
|
port = 8_000
|
||||||
|
host = "${main_domain}"
|
Loading…
Reference in New Issue
Block a user