mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
fix: complete rework of plane template
This commit is contained in:
@@ -1,64 +1,13 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
plane-redis:
|
||||
image: valkey/valkey:8.1.0-alpine
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- dev_env
|
||||
volumes:
|
||||
- redisdata:/data
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
plane-mq:
|
||||
image: rabbitmq:4.0-management-alpine
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- dev_env
|
||||
volumes:
|
||||
- rabbitmq_data:/var/lib/rabbitmq
|
||||
environment:
|
||||
- RABBITMQ_DEFAULT_USER
|
||||
- RABBITMQ_DEFAULT_PASS
|
||||
- RABBITMQ_DEFAULT_VHOST
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
plane-minio:
|
||||
image: minio/minio
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- dev_env
|
||||
command: server /export --console-address ":9090"
|
||||
volumes:
|
||||
- uploads:/export
|
||||
environment:
|
||||
- MINIO_ROOT_USER
|
||||
- MINIO_ROOT_PASSWORD
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
plane-db:
|
||||
image: postgres:17-alpine
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- dev_env
|
||||
command: postgres -c 'max_connections=1000'
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
environment:
|
||||
PGDATA: /var/lib/postgresql/data
|
||||
POSTGRES_USER: plane
|
||||
POSTGRES_PASSWORD: plane
|
||||
POSTGRES_DB: plane
|
||||
|
||||
|
||||
web:
|
||||
image: makeplane/plane-space:${APP_RELEASE:-v0.25.3}
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- dev_env
|
||||
volumes:
|
||||
- webdata:/app/web
|
||||
image: makeplane/plane-frontend:${APP_RELEASE:-v0.25.3}
|
||||
command: node web/server.js web
|
||||
deploy:
|
||||
replicas: ${WEB_REPLICAS:-1}
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
depends_on:
|
||||
- api
|
||||
- worker
|
||||
@@ -67,11 +16,11 @@ services:
|
||||
|
||||
space:
|
||||
image: makeplane/plane-space:${APP_RELEASE:-v0.25.3}
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- dev_env
|
||||
volumes:
|
||||
- space:/app/space
|
||||
command: node space/server.js space
|
||||
deploy:
|
||||
replicas: ${SPACE_REPLICAS:-1}
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
depends_on:
|
||||
- api
|
||||
- worker
|
||||
@@ -81,142 +30,165 @@ services:
|
||||
|
||||
admin:
|
||||
image: makeplane/plane-admin:${APP_RELEASE:-v0.25.3}
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- dev_env
|
||||
volumes:
|
||||
- admin:/app/admin
|
||||
command: node admin/server.js admin
|
||||
deploy:
|
||||
replicas: ${ADMIN_REPLICAS:-1}
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
depends_on:
|
||||
- api
|
||||
- worker
|
||||
- web
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
live:
|
||||
image: makeplane/plane-live:${APP_RELEASE:-v0.25.3}
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- dev_env
|
||||
volumes:
|
||||
- live:/app/live
|
||||
command: node live/dist/server.js live
|
||||
deploy:
|
||||
replicas: ${LIVE_REPLICAS:-1}
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
depends_on:
|
||||
- api
|
||||
- worker
|
||||
- web
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
api:
|
||||
image: makeplane/plane-backend:${APP_RELEASE:-v0.25.3}
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- dev_env
|
||||
command: ./bin/docker-entrypoint-api.sh
|
||||
deploy:
|
||||
replicas: ${API_REPLICAS:-1}
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
volumes:
|
||||
- apiserver:/code
|
||||
command: ./bin/docker-entrypoint-api-local.sh
|
||||
- logs_api:/code/plane/logs
|
||||
depends_on:
|
||||
- plane-db
|
||||
- plane-redis
|
||||
- plane-mq
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
worker:
|
||||
image: makeplane/plane-backend:${APP_RELEASE:-v0.25.1}
|
||||
command: ""
|
||||
image: makeplane/plane-backend:${APP_RELEASE:-v0.25.3}
|
||||
command: ./bin/docker-entrypoint-worker.sh
|
||||
deploy:
|
||||
replicas: ${WORKER_REPLICAS:-1}
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
volumes:
|
||||
- logs_worker:/code/plane/logs
|
||||
env_file:
|
||||
- .env
|
||||
depends_on:
|
||||
- api
|
||||
- plane-db
|
||||
- plane-redis
|
||||
healthcheck:
|
||||
test: ["CMD", "echo", "hey whats up"]
|
||||
interval: 2s
|
||||
timeout: 10s
|
||||
retries: 15
|
||||
- plane-mq
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
beat-worker:
|
||||
image: makeplane/plane-backend:${APP_RELEASE:-v0.25.1}
|
||||
image: makeplane/plane-backend:${APP_RELEASE:-v0.25.3}
|
||||
command: ./bin/docker-entrypoint-beat.sh
|
||||
deploy:
|
||||
replicas: ${BEAT_WORKER_REPLICAS:-1}
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
volumes:
|
||||
- logs_beat-worker:/code/plane/logs
|
||||
env_file:
|
||||
- .env
|
||||
depends_on:
|
||||
- api
|
||||
- plane-db
|
||||
- plane-redis
|
||||
healthcheck:
|
||||
test: ["CMD", "echo", "hey whats up"]
|
||||
interval: 2s
|
||||
timeout: 10s
|
||||
retries: 15
|
||||
- plane-mq
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
migrator:
|
||||
image: makeplane/plane-worker:0.11
|
||||
restart: "no"
|
||||
networks:
|
||||
- dev_env
|
||||
image: makeplane/plane-backend:${APP_RELEASE:-v0.25.3}
|
||||
command: ./bin/docker-entrypoint-migrator.sh
|
||||
deploy:
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
volumes:
|
||||
- apiserver:/code
|
||||
command: ./bin/docker-entrypoint-migrator.sh --settings=plane.settings.local
|
||||
- logs_migrator:/code/plane/logs
|
||||
depends_on:
|
||||
- plane-db
|
||||
- plane-redis
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
plane-db:
|
||||
image: postgres:17-alpine
|
||||
command: postgres -c 'max_connections=1000'
|
||||
deploy:
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
plane-redis:
|
||||
image: valkey/valkey:7.2.5-alpine
|
||||
deploy:
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
volumes:
|
||||
- redisdata:/data
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
plane-mq:
|
||||
image: rabbitmq:3.13.6-management-alpine
|
||||
deploy:
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
volumes:
|
||||
- rabbitmq_data:/var/lib/rabbitmq
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
plane-minio:
|
||||
image: minio/minio:latest
|
||||
command: server /export --console-address ":9090"
|
||||
deploy:
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
volumes:
|
||||
- uploads:/export
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
proxy:
|
||||
image: "makeplane/plane-proxy:${APP_RELEASE:-v0.25.3}"
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- dev_env
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
FILE_SIZE_LIMIT: ${FILE_SIZE_LIMIT:-5242880}
|
||||
BUCKET_NAME: ${AWS_S3_BUCKET_NAME:-uploads}
|
||||
image: makeplane/plane-proxy:${APP_RELEASE:-v0.25.3}
|
||||
ports:
|
||||
- target: 80
|
||||
published: ${NGINX_PORT:-80}
|
||||
protocol: tcp
|
||||
mode: host
|
||||
deploy:
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
depends_on:
|
||||
- web
|
||||
- api
|
||||
- space
|
||||
- admin
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://127.0.0.1:80"]
|
||||
interval: 2s
|
||||
timeout: 10s
|
||||
retries: 15
|
||||
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
volumes:
|
||||
redisdata:
|
||||
driver: local
|
||||
uploads:
|
||||
driver: local
|
||||
pgdata:
|
||||
driver: local
|
||||
rabbitmq_data:
|
||||
driver: local
|
||||
apiserver:
|
||||
driver: local
|
||||
webdata:
|
||||
driver: local
|
||||
space:
|
||||
driver: local
|
||||
admin:
|
||||
driver: local
|
||||
live:
|
||||
driver: local
|
||||
logs_beat-worker:
|
||||
driver: local
|
||||
redisdata:
|
||||
uploads:
|
||||
logs_api:
|
||||
logs_worker:
|
||||
driver: local
|
||||
|
||||
|
||||
networks:
|
||||
dev_env:
|
||||
driver: bridge
|
||||
|
||||
logs_beat-worker:
|
||||
logs_migrator:
|
||||
rabbitmq_data:
|
||||
Reference in New Issue
Block a user