mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-08 15:35:24 +02:00
* feat: add unleash template * feat: update unleash template to version 7.4.0 and fix formatting * feat: update database user in unleash template from postgres to unleash
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
# The default users credentials are:
|
|
# Login: admin
|
|
# Password: unleash4all
|
|
# It is highly recommended to change the password after first login.
|
|
# More info: https://github.com/Unleash/unleash?tab=readme-ov-file#unleash-open-source
|
|
version: "3.8"
|
|
|
|
services:
|
|
unleash:
|
|
image: unleashorg/unleash-server:7.4.0
|
|
restart: unless-stopped
|
|
environment:
|
|
DATABASE_URL: "postgres://${DB_USER}:${DB_PASSWORD}@db/${DB_NAME}"
|
|
DATABASE_SSL: "false"
|
|
LOG_LEVEL: "warn"
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
healthcheck:
|
|
test: wget --no-verbose --tries=1 --spider http://localhost:4242/health || exit 1
|
|
interval: 1s
|
|
timeout: 1m
|
|
retries: 5
|
|
start_period: 15s
|
|
db:
|
|
image: postgres:15
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: "${DB_NAME}"
|
|
POSTGRES_USER: "${DB_USER}"
|
|
POSTGRES_PASSWORD: "${DB_PASSWORD}"
|
|
volumes:
|
|
- db_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD",
|
|
"pg_isready",
|
|
"--username=${DB_USER}",
|
|
"--host=127.0.0.1",
|
|
"--port=5432",
|
|
]
|
|
interval: 2s
|
|
timeout: 1m
|
|
retries: 5
|
|
start_period: 10s
|
|
|
|
volumes:
|
|
db_data:
|