Skip to content

Commit 9927b71

Browse files
committed
fix: plane service template
1 parent b1c0f10 commit 9927b71

File tree

2 files changed

+50
-74
lines changed

2 files changed

+50
-74
lines changed

templates/compose/plane.yaml

Lines changed: 49 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,21 @@ x-app-env: &app-env
77
environment:
88
- WEB_URL=http://localhost
99
- DEBUG=${DEBUG:-0}
10-
- SENTRY_DSN=${SENTRY_DSN}
11-
- SENTRY_ENVIRONMENT=${SENTRY_ENVIRONMENT:-"production"}
1210
- CORS_ALLOWED_ORIGINS=http://localhost
1311
# Gunicorn Workers
1412
- GUNICORN_WORKERS=${GUNICORN_WORKERS:-1}
1513
#DB SETTINGS
16-
- PGHOST=${PGHOST:-plane-db}
17-
- PGDATABASE=${PGDATABASE:-plane}
14+
- PGHOST=plane-db
15+
- PGDATABASE=plane
1816
- POSTGRES_USER=$SERVICE_USER_POSTGRES
1917
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
20-
- POSTGRES_DB=${POSTGRES_DB:-plane}
21-
- POSTGRES_PORT=${POSTGRES_PORT:-5432}
22-
- PGDATA=${PGDATA:-/var/lib/postgresql/data}
18+
- POSTGRES_DB=plane
19+
- POSTGRES_PORT=5432
20+
- PGDATA=/var/lib/postgresql/data
2321
- DATABASE_URL=postgresql://$SERVICE_USER_POSTGRES:$SERVICE_PASSWORD_POSTGRES@plane-db/plane
2422
# REDIS SETTINGS
25-
- REDIS_HOST=${REDIS_HOST:-plane-redis}
26-
- REDIS_PORT=${REDIS_PORT:-6379}
23+
- REDIS_HOST=plane-redis
24+
- REDIS_PORT=6379
2725
- REDIS_URL=${REDIS_URL:-redis://plane-redis:6379/}
2826
# Application secret
2927
- SECRET_KEY=$SERVICE_PASSWORD_64_SECRETKEY
@@ -43,19 +41,12 @@ x-app-env: &app-env
4341
- SPACE_BASE_URL=${SPACE_BASE_URL}
4442
- APP_BASE_URL=${APP_BASE_URL}
4543

46-
47-
4844
services:
4945
proxy:
5046
environment:
51-
- SERVICE_FQDN_PLANE
52-
- NGINX_PORT=${NGINX_PORT:-9743}
53-
- FILE_SIZE_LIMIT=${FILE_SIZE_LIMIT:-5242880}
54-
image: ${DOCKERHUB_USER:-makeplane}/plane-proxy:${APP_RELEASE:-stable}
55-
platform: ${DOCKER_PLATFORM:-}
56-
pull_policy: ${PULL_POLICY:-always}
57-
ports:
58-
- ${NGINX_PORT}:80
47+
- SERVICE_FQDN_PLANE
48+
- FILE_SIZE_LIMIT=${FILE_SIZE_LIMIT:-5242880}
49+
image: makeplane/plane-proxy:stable
5950
depends_on:
6051
- web
6152
- api
@@ -68,91 +59,93 @@ services:
6859

6960
web:
7061
<<: *app-env
71-
image: ${DOCKERHUB_USER:-makeplane}/plane-frontend:${APP_RELEASE:-stable}
72-
platform: ${DOCKER_PLATFORM:-}
73-
pull_policy: ${PULL_POLICY:-always}
74-
restart: unless-stopped
62+
image: makeplane/plane-frontend:stable
7563
command: node web/server.js web
76-
deploy:
77-
replicas: ${WEB_REPLICAS:-1}
7864
depends_on:
7965
- api
8066
- worker
67+
healthcheck:
68+
test: "wget -qO- http://`hostname`:3000"
69+
interval: 2s
70+
timeout: 10s
71+
retries: 15
8172
space:
8273
<<: *app-env
83-
image: ${DOCKERHUB_USER:-makeplane}/plane-space:${APP_RELEASE:-stable}
84-
platform: ${DOCKER_PLATFORM:-}
85-
pull_policy: ${PULL_POLICY:-always}
86-
restart: unless-stopped
74+
image: makeplane/plane-space:stable
8775
command: node space/server.js space
88-
deploy:
89-
replicas: ${SPACE_REPLICAS:-1}
9076
depends_on:
9177
- api
9278
- worker
9379
- web
80+
healthcheck:
81+
test: ["CMD", "echo", "hey whats up"]
82+
interval: 2s
83+
timeout: 10s
84+
retries: 15
9485

9586
admin:
9687
<<: *app-env
97-
image: ${DOCKERHUB_USER:-makeplane}/plane-admin:${APP_RELEASE:-stable}
98-
platform: ${DOCKER_PLATFORM:-}
99-
pull_policy: ${PULL_POLICY:-always}
100-
restart: unless-stopped
88+
image: makeplane/plane-admin:stable
10189
command: node admin/server.js admin
102-
deploy:
103-
replicas: ${ADMIN_REPLICAS:-1}
10490
depends_on:
10591
- api
10692
- web
93+
healthcheck:
94+
test: ["CMD", "echo", "hey whats up"]
95+
interval: 2s
96+
timeout: 10s
97+
retries: 15
10798

10899
api:
109100
<<: *app-env
110-
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${APP_RELEASE:-stable}
111-
platform: ${DOCKER_PLATFORM:-}
112-
pull_policy: ${PULL_POLICY:-always}
113-
restart: unless-stopped
101+
image: makeplane/plane-backend:stable
114102
command: ./bin/docker-entrypoint-api.sh
115-
deploy:
116-
replicas: ${API_REPLICAS:-1}
117103
volumes:
118104
- logs_api:/code/plane/logs
119105
depends_on:
120106
- plane-db
121107
- plane-redis
122-
108+
healthcheck:
109+
test: ["CMD", "echo", "hey whats up"]
110+
interval: 2s
111+
timeout: 10s
112+
retries: 15
113+
123114
worker:
124115
<<: *app-env
125-
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${APP_RELEASE:-stable}
126-
platform: ${DOCKER_PLATFORM:-}
127-
pull_policy: ${PULL_POLICY:-always}
128-
restart: unless-stopped
116+
image: makeplane/plane-backend:stable
129117
command: ./bin/docker-entrypoint-worker.sh
130118
volumes:
131119
- logs_worker:/code/plane/logs
132120
depends_on:
133121
- api
134122
- plane-db
135123
- plane-redis
124+
healthcheck:
125+
test: ["CMD", "echo", "hey whats up"]
126+
interval: 2s
127+
timeout: 10s
128+
retries: 15
136129

137130
beat-worker:
138131
<<: *app-env
139-
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${APP_RELEASE:-stable}
140-
platform: ${DOCKER_PLATFORM:-}
141-
pull_policy: ${PULL_POLICY:-always}
142-
restart: unless-stopped
132+
image: makeplane/plane-backend:stable
143133
command: ./bin/docker-entrypoint-beat.sh
144134
volumes:
145135
- logs_beat-worker:/code/plane/logs
146136
depends_on:
147137
- api
148138
- plane-db
149139
- plane-redis
140+
healthcheck:
141+
test: ["CMD", "echo", "hey whats up"]
142+
interval: 2s
143+
timeout: 10s
144+
retries: 15
150145

151146
migrator:
152147
<<: *app-env
153-
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${APP_RELEASE:-stable}
154-
platform: ${DOCKER_PLATFORM:-}
155-
pull_policy: ${PULL_POLICY:-always}
148+
image: makeplane/plane-backend:stable
156149
restart: "no"
157150
command: ./bin/docker-entrypoint-migrator.sh
158151
volumes:
@@ -164,8 +157,6 @@ services:
164157
plane-db:
165158
<<: *app-env
166159
image: postgres:15.5-alpine
167-
pull_policy: if_not_present
168-
restart: unless-stopped
169160
command: postgres -c 'max_connections=1000'
170161
volumes:
171162
- pgdata:/var/lib/postgresql/data
@@ -178,8 +169,6 @@ services:
178169
plane-redis:
179170
<<: *app-env
180171
image: valkey/valkey:7.2.5-alpine
181-
pull_policy: if_not_present
182-
restart: unless-stopped
183172
volumes:
184173
- redisdata:/data
185174
healthcheck:
@@ -188,27 +177,14 @@ services:
188177
timeout: 20s
189178
retries: 10
190179

191-
192180
plane-minio:
193181
<<: *app-env
194182
image: minio/minio:latest
195-
pull_policy: if_not_present
196-
restart: unless-stopped
197183
command: server /export --console-address ":9090"
198184
volumes:
199185
- uploads:/export
200186
healthcheck:
201-
test: ["CMD", "curl", "-f", "http://127.0.0.1:9000/minio/health/live"]
187+
test: ["CMD", "mc", "ready", "local"]
202188
interval: 5s
203189
timeout: 20s
204190
retries: 10
205-
206-
207-
volumes:
208-
pgdata:
209-
redisdata:
210-
uploads:
211-
logs_api:
212-
logs_worker:
213-
logs_beat-worker:
214-
logs_migrator:

templates/service-templates.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)