mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-10 16:35:27 +02:00
chore(plane): update template to v1.3.1 with healthchecks and bug fixes
- Bump makeplane/* images v0.27.1 -> v1.3.1 - Pin minio to RELEASE.2025-04-22T22-12-26Z (last release with full admin console before community-edition feature removal) - Add YAML anchors (x-*-env) for env reuse across backend services - Add healthchecks for postgres, valkey, rabbitmq - api/worker/beat-worker wait for migrator via service_completed_successfully (fixes race where backend booted before schema was migrated) - Add restart policies (unless-stopped for long-running, on-failure for migrator) - Migrate env_file -> inline environment (matches repo convention) - Expose APP_RELEASE in template.toml [variables] for UI override Bug fixes in template.toml: - RABBITMQ_DEFAULT_USER was the literal string "rabbitmq_user" instead of a variable reference; AMQP_URL was inconsistent with the broker user - WEB_URL was missing the https:// scheme (broke OAuth/email links) - DATABASE_URL/AMQP_URL referenced inline vars that Dokploy does not resolve inside [config.env]; now use [variables] directly - Remove dead vars: NGINX_PORT (Plane v1.x uses Caddy), SENTRY_DSN, SENTRY_ENVIRONMENT - Add WEBHOOK_ALLOWED_IPS/WEBHOOK_ALLOWED_HOSTS (SSRF guard default introduced in Plane v1.x)
This commit is contained in:
@@ -1,137 +1,251 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
|
x-db-env: &db-env
|
||||||
|
PGHOST: ${PGHOST:-plane-db}
|
||||||
|
PGDATABASE: ${PGDATABASE:-plane}
|
||||||
|
POSTGRES_USER: ${POSTGRES_USER:-plane}
|
||||||
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-plane}
|
||||||
|
POSTGRES_DB: ${POSTGRES_DB:-plane}
|
||||||
|
POSTGRES_PORT: ${POSTGRES_PORT:-5432}
|
||||||
|
PGDATA: ${PGDATA:-/var/lib/postgresql/data}
|
||||||
|
|
||||||
|
x-redis-env: &redis-env
|
||||||
|
REDIS_HOST: ${REDIS_HOST:-plane-redis}
|
||||||
|
REDIS_PORT: ${REDIS_PORT:-6379}
|
||||||
|
REDIS_URL: ${REDIS_URL:-redis://plane-redis:6379/}
|
||||||
|
|
||||||
|
x-minio-env: &minio-env
|
||||||
|
MINIO_ROOT_USER: ${AWS_ACCESS_KEY_ID:-access-key}
|
||||||
|
MINIO_ROOT_PASSWORD: ${AWS_SECRET_ACCESS_KEY:-secret-key}
|
||||||
|
|
||||||
|
x-aws-s3-env: &aws-s3-env
|
||||||
|
AWS_REGION: ${AWS_REGION:-}
|
||||||
|
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID:-access-key}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY:-secret-key}
|
||||||
|
AWS_S3_ENDPOINT_URL: ${AWS_S3_ENDPOINT_URL:-http://plane-minio:9000}
|
||||||
|
AWS_S3_BUCKET_NAME: ${AWS_S3_BUCKET_NAME:-uploads}
|
||||||
|
|
||||||
|
x-proxy-env: &proxy-env
|
||||||
|
APP_DOMAIN: ${APP_DOMAIN:-localhost}
|
||||||
|
FILE_SIZE_LIMIT: ${FILE_SIZE_LIMIT:-5242880}
|
||||||
|
BUCKET_NAME: ${AWS_S3_BUCKET_NAME:-uploads}
|
||||||
|
|
||||||
|
x-mq-env: &mq-env
|
||||||
|
RABBITMQ_HOST: ${RABBITMQ_HOST:-plane-mq}
|
||||||
|
RABBITMQ_PORT: ${RABBITMQ_PORT:-5672}
|
||||||
|
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER:-plane}
|
||||||
|
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD:-plane}
|
||||||
|
RABBITMQ_DEFAULT_VHOST: ${RABBITMQ_VHOST:-plane}
|
||||||
|
RABBITMQ_VHOST: ${RABBITMQ_VHOST:-plane}
|
||||||
|
|
||||||
|
x-live-env: &live-env
|
||||||
|
API_BASE_URL: ${API_BASE_URL:-http://api:8000}
|
||||||
|
LIVE_SERVER_SECRET_KEY: ${LIVE_SERVER_SECRET_KEY:-dev-only-change-me}
|
||||||
|
|
||||||
|
x-app-env: &app-env
|
||||||
|
WEB_URL: ${WEB_URL:-http://localhost}
|
||||||
|
DEBUG: ${DEBUG:-0}
|
||||||
|
CORS_ALLOWED_ORIGINS: ${CORS_ALLOWED_ORIGINS:-http://localhost}
|
||||||
|
GUNICORN_WORKERS: ${GUNICORN_WORKERS:-1}
|
||||||
|
USE_MINIO: ${USE_MINIO:-1}
|
||||||
|
DATABASE_URL: ${DATABASE_URL:-postgresql://plane:plane@plane-db/plane}
|
||||||
|
SECRET_KEY: ${SECRET_KEY:-dev-only-change-me}
|
||||||
|
AMQP_URL: ${AMQP_URL:-amqp://plane:plane@plane-mq:5672/plane}
|
||||||
|
API_KEY_RATE_LIMIT: ${API_KEY_RATE_LIMIT:-60/minute}
|
||||||
|
MINIO_ENDPOINT_SSL: ${MINIO_ENDPOINT_SSL:-0}
|
||||||
|
LIVE_SERVER_SECRET_KEY: ${LIVE_SERVER_SECRET_KEY:-dev-only-change-me}
|
||||||
|
WEBHOOK_ALLOWED_IPS: ${WEBHOOK_ALLOWED_IPS:-}
|
||||||
|
WEBHOOK_ALLOWED_HOSTS: ${WEBHOOK_ALLOWED_HOSTS:-}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
image: makeplane/plane-frontend:${APP_RELEASE:-v0.27.1}
|
image: makeplane/plane-frontend:${APP_RELEASE:-v1.3.1}
|
||||||
command: node web/server.js web
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- api
|
api:
|
||||||
- worker
|
condition: service_started
|
||||||
env_file:
|
worker:
|
||||||
- .env
|
condition: service_started
|
||||||
|
|
||||||
space:
|
space:
|
||||||
image: makeplane/plane-space:${APP_RELEASE:-v0.27.1}
|
image: makeplane/plane-space:${APP_RELEASE:-v1.3.1}
|
||||||
command: node space/server.js space
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- api
|
api:
|
||||||
- worker
|
condition: service_started
|
||||||
- web
|
worker:
|
||||||
env_file:
|
condition: service_started
|
||||||
- .env
|
web:
|
||||||
|
condition: service_started
|
||||||
|
|
||||||
admin:
|
admin:
|
||||||
image: makeplane/plane-admin:${APP_RELEASE:-v0.27.1}
|
image: makeplane/plane-admin:${APP_RELEASE:-v1.3.1}
|
||||||
command: node admin/server.js admin
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- api
|
api:
|
||||||
- web
|
condition: service_started
|
||||||
env_file:
|
web:
|
||||||
- .env
|
condition: service_started
|
||||||
|
|
||||||
live:
|
live:
|
||||||
image: makeplane/plane-live:${APP_RELEASE:-v0.27.1}
|
image: makeplane/plane-live:${APP_RELEASE:-v1.3.1}
|
||||||
command: node live/dist/server.js live
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
<<: [*live-env, *redis-env]
|
||||||
depends_on:
|
depends_on:
|
||||||
- api
|
api:
|
||||||
- web
|
condition: service_started
|
||||||
env_file:
|
web:
|
||||||
- .env
|
condition: service_started
|
||||||
|
|
||||||
api:
|
api:
|
||||||
image: makeplane/plane-backend:${APP_RELEASE:-v0.27.1}
|
image: makeplane/plane-backend:${APP_RELEASE:-v1.3.1}
|
||||||
|
restart: unless-stopped
|
||||||
command: ./bin/docker-entrypoint-api.sh
|
command: ./bin/docker-entrypoint-api.sh
|
||||||
volumes:
|
volumes:
|
||||||
- logs_api:/code/plane/logs
|
- logs_api:/code/plane/logs
|
||||||
|
environment:
|
||||||
|
<<: [*app-env, *db-env, *redis-env, *minio-env, *aws-s3-env, *proxy-env]
|
||||||
depends_on:
|
depends_on:
|
||||||
- plane-db
|
plane-db:
|
||||||
- plane-redis
|
condition: service_healthy
|
||||||
- plane-mq
|
plane-redis:
|
||||||
env_file:
|
condition: service_healthy
|
||||||
- .env
|
plane-mq:
|
||||||
|
condition: service_healthy
|
||||||
|
migrator:
|
||||||
|
condition: service_completed_successfully
|
||||||
|
|
||||||
worker:
|
worker:
|
||||||
image: makeplane/plane-backend:${APP_RELEASE:-v0.27.1}
|
image: makeplane/plane-backend:${APP_RELEASE:-v1.3.1}
|
||||||
|
restart: unless-stopped
|
||||||
command: ./bin/docker-entrypoint-worker.sh
|
command: ./bin/docker-entrypoint-worker.sh
|
||||||
volumes:
|
volumes:
|
||||||
- logs_worker:/code/plane/logs
|
- logs_worker:/code/plane/logs
|
||||||
|
environment:
|
||||||
|
<<: [*app-env, *db-env, *redis-env, *minio-env, *aws-s3-env, *proxy-env]
|
||||||
depends_on:
|
depends_on:
|
||||||
- api
|
plane-db:
|
||||||
- plane-db
|
condition: service_healthy
|
||||||
- plane-redis
|
plane-redis:
|
||||||
- plane-mq
|
condition: service_healthy
|
||||||
env_file:
|
plane-mq:
|
||||||
- .env
|
condition: service_healthy
|
||||||
|
migrator:
|
||||||
|
condition: service_completed_successfully
|
||||||
|
|
||||||
beat-worker:
|
beat-worker:
|
||||||
image: makeplane/plane-backend:${APP_RELEASE:-v0.27.1}
|
image: makeplane/plane-backend:${APP_RELEASE:-v1.3.1}
|
||||||
|
restart: unless-stopped
|
||||||
command: ./bin/docker-entrypoint-beat.sh
|
command: ./bin/docker-entrypoint-beat.sh
|
||||||
volumes:
|
volumes:
|
||||||
- logs_beat-worker:/code/plane/logs
|
- logs_beat-worker:/code/plane/logs
|
||||||
|
environment:
|
||||||
|
<<: [*app-env, *db-env, *redis-env, *minio-env, *aws-s3-env, *proxy-env]
|
||||||
depends_on:
|
depends_on:
|
||||||
- api
|
plane-db:
|
||||||
- plane-db
|
condition: service_healthy
|
||||||
- plane-redis
|
plane-redis:
|
||||||
- plane-mq
|
condition: service_healthy
|
||||||
env_file:
|
plane-mq:
|
||||||
- .env
|
condition: service_healthy
|
||||||
|
migrator:
|
||||||
|
condition: service_completed_successfully
|
||||||
|
|
||||||
migrator:
|
migrator:
|
||||||
image: makeplane/plane-backend:${APP_RELEASE:-v0.27.1}
|
image: makeplane/plane-backend:${APP_RELEASE:-v1.3.1}
|
||||||
|
restart: on-failure
|
||||||
command: ./bin/docker-entrypoint-migrator.sh
|
command: ./bin/docker-entrypoint-migrator.sh
|
||||||
volumes:
|
volumes:
|
||||||
- logs_migrator:/code/plane/logs
|
- logs_migrator:/code/plane/logs
|
||||||
|
environment:
|
||||||
|
<<: [*app-env, *db-env, *redis-env, *minio-env, *aws-s3-env, *proxy-env]
|
||||||
depends_on:
|
depends_on:
|
||||||
- plane-db
|
plane-db:
|
||||||
- plane-redis
|
condition: service_healthy
|
||||||
env_file:
|
plane-redis:
|
||||||
- .env
|
condition: service_healthy
|
||||||
|
|
||||||
plane-db:
|
plane-db:
|
||||||
image: postgres:17-alpine
|
image: postgres:17-alpine
|
||||||
|
restart: unless-stopped
|
||||||
command: postgres -c 'max_connections=1000'
|
command: postgres -c 'max_connections=1000'
|
||||||
|
environment:
|
||||||
|
<<: *db-env
|
||||||
volumes:
|
volumes:
|
||||||
- pgdata:/var/lib/postgresql/data
|
- pgdata:/var/lib/postgresql/data
|
||||||
env_file:
|
healthcheck:
|
||||||
- .env
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-plane} -d ${POSTGRES_DB:-plane}"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 10
|
||||||
|
start_period: 10s
|
||||||
|
|
||||||
plane-redis:
|
plane-redis:
|
||||||
image: valkey/valkey:7.2.5-alpine
|
image: valkey/valkey:7.2.11-alpine
|
||||||
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- redisdata:/data
|
- redisdata:/data
|
||||||
env_file:
|
healthcheck:
|
||||||
- .env
|
test: ["CMD-SHELL", "valkey-cli ping | grep -q PONG"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 3s
|
||||||
|
retries: 5
|
||||||
|
start_period: 5s
|
||||||
|
|
||||||
plane-mq:
|
plane-mq:
|
||||||
image: rabbitmq:3.13.6-management-alpine
|
image: rabbitmq:3.13.6-management-alpine
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
<<: *mq-env
|
||||||
volumes:
|
volumes:
|
||||||
- rabbitmq_data:/var/lib/rabbitmq
|
- rabbitmq_data:/var/lib/rabbitmq
|
||||||
env_file:
|
healthcheck:
|
||||||
- .env
|
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 10
|
||||||
|
start_period: 30s
|
||||||
|
|
||||||
plane-minio:
|
plane-minio:
|
||||||
image: minio/minio:latest
|
image: minio/minio:RELEASE.2025-04-22T22-12-26Z
|
||||||
|
restart: unless-stopped
|
||||||
command: server /export --console-address ":9090"
|
command: server /export --console-address ":9090"
|
||||||
|
environment:
|
||||||
|
<<: *minio-env
|
||||||
volumes:
|
volumes:
|
||||||
- uploads:/export
|
- uploads:/export
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
|
|
||||||
proxy:
|
proxy:
|
||||||
image: makeplane/plane-proxy:${APP_RELEASE:-v0.27.1}
|
image: makeplane/plane-proxy:${APP_RELEASE:-v1.3.1}
|
||||||
|
restart: unless-stopped
|
||||||
|
expose:
|
||||||
|
- "80"
|
||||||
|
environment:
|
||||||
|
<<: *proxy-env
|
||||||
|
volumes:
|
||||||
|
- proxy_config:/config
|
||||||
|
- proxy_data:/data
|
||||||
depends_on:
|
depends_on:
|
||||||
- web
|
web:
|
||||||
- api
|
condition: service_started
|
||||||
- space
|
api:
|
||||||
env_file:
|
condition: service_started
|
||||||
- .env
|
space:
|
||||||
|
condition: service_started
|
||||||
|
admin:
|
||||||
|
condition: service_started
|
||||||
|
live:
|
||||||
|
condition: service_started
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
pgdata:
|
pgdata:
|
||||||
redisdata:
|
redisdata:
|
||||||
uploads:
|
uploads:
|
||||||
|
rabbitmq_data:
|
||||||
logs_api:
|
logs_api:
|
||||||
logs_worker:
|
logs_worker:
|
||||||
logs_beat-worker:
|
logs_beat-worker:
|
||||||
logs_migrator:
|
logs_migrator:
|
||||||
rabbitmq_data:
|
proxy_config:
|
||||||
|
proxy_data:
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 5.5 KiB |
@@ -1,57 +1,56 @@
|
|||||||
[variables]
|
[variables]
|
||||||
|
app_release = "v1.3.1"
|
||||||
main_domain = "${domain}"
|
main_domain = "${domain}"
|
||||||
db_password = "${password:32}"
|
postgres_password = "${password:32}"
|
||||||
minio_password = "${password:32}"
|
minio_password = "${password:32}"
|
||||||
rabbitmq_user = "${username}"
|
rabbitmq_password = "${password:32}"
|
||||||
rabbitmq_pass = "${password:32}"
|
|
||||||
secret_key = "${base64:48}"
|
secret_key = "${base64:48}"
|
||||||
|
live_secret_key = "${base64:48}"
|
||||||
|
|
||||||
[config]
|
[config]
|
||||||
env = [
|
|
||||||
"Domain=${domain}",
|
|
||||||
"WEB_URL=${Domain}",
|
|
||||||
"PGHOST=plane-db",
|
|
||||||
"PGDATABASE=plane",
|
|
||||||
"POSTGRES_USER=${username}",
|
|
||||||
"POSTGRES_PASSWORD=${db_password}",
|
|
||||||
"POSTGRES_DB=plane",
|
|
||||||
"POSTGRES_PORT=5432",
|
|
||||||
"PGDATA=/var/lib/postgresql/data",
|
|
||||||
"REDIS_HOST=plane-redis",
|
|
||||||
"REDIS_PORT=6379",
|
|
||||||
"REDIS_URL=redis://plane-redis:6379/",
|
|
||||||
"MINIO_ROOT_USER=access-key",
|
|
||||||
"MINIO_ROOT_PASSWORD=${minio_password}",
|
|
||||||
"AWS_REGION=",
|
|
||||||
"AWS_ACCESS_KEY_ID=${MINIO_ROOT_USER}",
|
|
||||||
"AWS_SECRET_ACCESS_KEY=${minio_password}",
|
|
||||||
"AWS_S3_ENDPOINT_URL=http://plane-minio:9000",
|
|
||||||
"AWS_S3_BUCKET_NAME=uploads",
|
|
||||||
"NGINX_PORT=80",
|
|
||||||
"BUCKET_NAME=uploads",
|
|
||||||
"FILE_SIZE_LIMIT=5242880",
|
|
||||||
"RABBITMQ_HOST=plane-mq",
|
|
||||||
"RABBITMQ_PORT=5672",
|
|
||||||
"RABBITMQ_DEFAULT_USER=rabbitmq_user",
|
|
||||||
"RABBITMQ_DEFAULT_PASS=${rabbitmq_pass}",
|
|
||||||
"RABBITMQ_DEFAULT_VHOST=plane",
|
|
||||||
"RABBITMQ_VHOST=plane",
|
|
||||||
"API_BASE_URL=http://api:8000",
|
|
||||||
"DEBUG=0",
|
|
||||||
"SENTRY_DSN=",
|
|
||||||
"SENTRY_ENVIRONMENT=production",
|
|
||||||
"CORS_ALLOWED_ORIGINS=https://${Domain}",
|
|
||||||
"GUNICORN_WORKERS=1",
|
|
||||||
"USE_MINIO=1",
|
|
||||||
"DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@plane-db/plane",
|
|
||||||
"SECRET_KEY=${secret_key}",
|
|
||||||
"AMQP_URL=amqp://${RABBITMQ_DEFAULT_USER}:${RABBITMQ_DEFAULT_PASS}@plane-mq:5672/plane",
|
|
||||||
"API_KEY_RATE_LIMIT=60/minute",
|
|
||||||
"MINIO_ENDPOINT_SSL=0"
|
|
||||||
]
|
|
||||||
mounts = []
|
|
||||||
|
|
||||||
[[config.domains]]
|
[[config.domains]]
|
||||||
serviceName = "proxy"
|
serviceName = "proxy"
|
||||||
port = 80
|
port = 80
|
||||||
host = "${main_domain}"
|
host = "${main_domain}"
|
||||||
|
|
||||||
|
env = [
|
||||||
|
"APP_RELEASE=${app_release}",
|
||||||
|
"APP_DOMAIN=${main_domain}",
|
||||||
|
"WEB_URL=https://${main_domain}",
|
||||||
|
"CORS_ALLOWED_ORIGINS=https://${main_domain}",
|
||||||
|
"API_BASE_URL=http://api:8000",
|
||||||
|
"SECRET_KEY=${secret_key}",
|
||||||
|
"LIVE_SERVER_SECRET_KEY=${live_secret_key}",
|
||||||
|
"POSTGRES_USER=plane",
|
||||||
|
"POSTGRES_PASSWORD=${postgres_password}",
|
||||||
|
"POSTGRES_DB=plane",
|
||||||
|
"POSTGRES_PORT=5432",
|
||||||
|
"PGHOST=plane-db",
|
||||||
|
"PGDATABASE=plane",
|
||||||
|
"PGDATA=/var/lib/postgresql/data",
|
||||||
|
"DATABASE_URL=postgresql://plane:${postgres_password}@plane-db:5432/plane",
|
||||||
|
"REDIS_HOST=plane-redis",
|
||||||
|
"REDIS_PORT=6379",
|
||||||
|
"REDIS_URL=redis://plane-redis:6379/",
|
||||||
|
"RABBITMQ_HOST=plane-mq",
|
||||||
|
"RABBITMQ_PORT=5672",
|
||||||
|
"RABBITMQ_USER=plane",
|
||||||
|
"RABBITMQ_PASSWORD=${rabbitmq_password}",
|
||||||
|
"RABBITMQ_VHOST=plane",
|
||||||
|
"AMQP_URL=amqp://plane:${rabbitmq_password}@plane-mq:5672/plane",
|
||||||
|
"USE_MINIO=1",
|
||||||
|
"AWS_REGION=",
|
||||||
|
"AWS_ACCESS_KEY_ID=access-key",
|
||||||
|
"AWS_SECRET_ACCESS_KEY=${minio_password}",
|
||||||
|
"AWS_S3_ENDPOINT_URL=http://plane-minio:9000",
|
||||||
|
"AWS_S3_BUCKET_NAME=uploads",
|
||||||
|
"FILE_SIZE_LIMIT=5242880",
|
||||||
|
"MINIO_ENDPOINT_SSL=0",
|
||||||
|
"DEBUG=0",
|
||||||
|
"GUNICORN_WORKERS=1",
|
||||||
|
"API_KEY_RATE_LIMIT=60/minute",
|
||||||
|
"WEBHOOK_ALLOWED_IPS=",
|
||||||
|
"WEBHOOK_ALLOWED_HOSTS=",
|
||||||
|
]
|
||||||
|
|
||||||
|
mounts = []
|
||||||
|
|||||||
@@ -5066,7 +5066,7 @@
|
|||||||
{
|
{
|
||||||
"id": "plane",
|
"id": "plane",
|
||||||
"name": "Plane",
|
"name": "Plane",
|
||||||
"version": "v0.27.1",
|
"version": "v1.3.1",
|
||||||
"description": "Easy, flexible, open source project management software",
|
"description": "Easy, flexible, open source project management software",
|
||||||
"logo": "plane.png",
|
"logo": "plane.png",
|
||||||
"links": {
|
"links": {
|
||||||
|
|||||||
Reference in New Issue
Block a user