[plane] Use versioned tag, integrate with latest-versions
This commit is contained in:
parent
9c9d2fcd47
commit
bfe4e1ff50
@ -26,3 +26,4 @@ freescout=latest_php8.3
|
|||||||
espocrm=8.4.0-apache
|
espocrm=8.4.0-apache
|
||||||
msp=latest
|
msp=latest
|
||||||
roundcube=1.6.8-apache
|
roundcube=1.6.8-apache
|
||||||
|
plane=v0.24.1
|
||||||
|
66
lib/plane.sh
66
lib/plane.sh
@ -29,9 +29,12 @@ config_plane() {
|
|||||||
|
|
||||||
USE_TRAEFIK=true
|
USE_TRAEFIK=true
|
||||||
|
|
||||||
cat >/federated/apps/plane/plane.env <<'EOF'
|
cat >/federated/apps/plane/.env <<'EOF'
|
||||||
APP_DOMAIN=plane.@DOMAIN@
|
APP_DOMAIN=plane.@DOMAIN@
|
||||||
APP_RELEASE=stable
|
IMAGE_VERSION=v0.24.1
|
||||||
|
VALKEY_RELEASE=7.2.5-alpine
|
||||||
|
RABBITMQ_RELEASE=3.13.6-management-alpine
|
||||||
|
MINIO_RELEASE=RELEASE.2024-12-18T13-15-44Z
|
||||||
|
|
||||||
WEB_REPLICAS=1
|
WEB_REPLICAS=1
|
||||||
SPACE_REPLICAS=1
|
SPACE_REPLICAS=1
|
||||||
@ -96,7 +99,7 @@ EMAIL_FROM=admin@@DOMAIN@
|
|||||||
EMAIL_USE_TLS=1
|
EMAIL_USE_TLS=1
|
||||||
EMAIL_USE_SSL=0
|
EMAIL_USE_SSL=0
|
||||||
|
|
||||||
# UNCOMMENT `DOCKER_PLATFORM` IF YOU ARE ON `ARM64` AND DOCKER IMAGE IS NOT AVAILABLE FOR RESPECTIVE `APP_RELEASE`
|
# UNCOMMENT `DOCKER_PLATFORM` IF YOU ARE ON `ARM64` AND DOCKER IMAGE IS NOT AVAILABLE FOR RESPECTIVE `IMAGE_VERSION`
|
||||||
# DOCKER_PLATFORM=linux/amd64
|
# DOCKER_PLATFORM=linux/amd64
|
||||||
|
|
||||||
DOCKERHUB_USER=makeplane
|
DOCKERHUB_USER=makeplane
|
||||||
@ -156,14 +159,14 @@ x-app-env: &app-env
|
|||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
<<: *app-env
|
<<: *app-env
|
||||||
image: ${DOCKERHUB_USER:-makeplane}/plane-frontend:${APP_RELEASE:-stable}
|
image: ${DOCKERHUB_USER:-makeplane}/plane-frontend:${IMAGE_VERSION:-stable}
|
||||||
platform: ${DOCKER_PLATFORM:-}
|
platform: ${DOCKER_PLATFORM:-}
|
||||||
expose:
|
expose:
|
||||||
- 3000
|
- 3000
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
env_file:
|
env_file:
|
||||||
- ./plane.env
|
- .env
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if $USE_TRAEFIK; then
|
if $USE_TRAEFIK; then
|
||||||
@ -192,10 +195,10 @@ EOF
|
|||||||
|
|
||||||
space:
|
space:
|
||||||
<<: *app-env
|
<<: *app-env
|
||||||
image: ${DOCKERHUB_USER:-makeplane}/plane-space:${APP_RELEASE:-stable}
|
image: ${DOCKERHUB_USER:-makeplane}/plane-space:${IMAGE_VERSION:-stable}
|
||||||
platform: ${DOCKER_PLATFORM:-}
|
platform: ${DOCKER_PLATFORM:-}
|
||||||
env_file:
|
env_file:
|
||||||
- ./plane.env
|
- .env
|
||||||
networks:
|
networks:
|
||||||
core:
|
core:
|
||||||
ipv4_address: 192.168.0.51
|
ipv4_address: 192.168.0.51
|
||||||
@ -225,10 +228,10 @@ EOF
|
|||||||
|
|
||||||
admin:
|
admin:
|
||||||
<<: *app-env
|
<<: *app-env
|
||||||
image: ${DOCKERHUB_USER:-makeplane}/plane-admin:${APP_RELEASE:-stable}
|
image: ${DOCKERHUB_USER:-makeplane}/plane-admin:${IMAGE_VERSION:-stable}
|
||||||
platform: ${DOCKER_PLATFORM:-}
|
platform: ${DOCKER_PLATFORM:-}
|
||||||
env_file:
|
env_file:
|
||||||
- ./plane.env
|
- .env
|
||||||
networks:
|
networks:
|
||||||
core:
|
core:
|
||||||
ipv4_address: 192.168.0.52
|
ipv4_address: 192.168.0.52
|
||||||
@ -257,10 +260,10 @@ EOF
|
|||||||
|
|
||||||
live:
|
live:
|
||||||
<<: *app-env
|
<<: *app-env
|
||||||
image: ${DOCKERHUB_USER:-makeplane}/plane-live:${APP_RELEASE:-stable}
|
image: ${DOCKERHUB_USER:-makeplane}/plane-live:${IMAGE_VERSION:-stable}
|
||||||
platform: ${DOCKER_PLATFORM:-}
|
platform: ${DOCKER_PLATFORM:-}
|
||||||
env_file:
|
env_file:
|
||||||
- ./plane.env
|
- .env
|
||||||
networks:
|
networks:
|
||||||
core:
|
core:
|
||||||
ipv4_address: 192.168.0.53
|
ipv4_address: 192.168.0.53
|
||||||
@ -289,10 +292,10 @@ EOF
|
|||||||
|
|
||||||
api:
|
api:
|
||||||
<<: *app-env
|
<<: *app-env
|
||||||
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${APP_RELEASE:-stable}
|
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${IMAGE_VERSION:-stable}
|
||||||
platform: ${DOCKER_PLATFORM:-}
|
platform: ${DOCKER_PLATFORM:-}
|
||||||
env_file:
|
env_file:
|
||||||
- ./plane.env
|
- .env
|
||||||
networks:
|
networks:
|
||||||
core:
|
core:
|
||||||
ipv4_address: 192.168.0.54
|
ipv4_address: 192.168.0.54
|
||||||
@ -324,10 +327,10 @@ EOF
|
|||||||
|
|
||||||
worker:
|
worker:
|
||||||
<<: *app-env
|
<<: *app-env
|
||||||
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${APP_RELEASE:-stable}
|
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${IMAGE_VERSION:-stable}
|
||||||
platform: ${DOCKER_PLATFORM:-}
|
platform: ${DOCKER_PLATFORM:-}
|
||||||
env_file:
|
env_file:
|
||||||
- ./plane.env
|
- .env
|
||||||
networks:
|
networks:
|
||||||
core:
|
core:
|
||||||
ipv4_address: 192.168.0.55
|
ipv4_address: 192.168.0.55
|
||||||
@ -343,10 +346,10 @@ EOF
|
|||||||
|
|
||||||
beat-worker:
|
beat-worker:
|
||||||
<<: *app-env
|
<<: *app-env
|
||||||
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${APP_RELEASE:-stable}
|
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${IMAGE_VERSION:-stable}
|
||||||
platform: ${DOCKER_PLATFORM:-}
|
platform: ${DOCKER_PLATFORM:-}
|
||||||
env_file:
|
env_file:
|
||||||
- ./plane.env
|
- .env
|
||||||
networks:
|
networks:
|
||||||
core:
|
core:
|
||||||
ipv4_address: 192.168.0.56
|
ipv4_address: 192.168.0.56
|
||||||
@ -362,10 +365,10 @@ EOF
|
|||||||
|
|
||||||
migrator:
|
migrator:
|
||||||
<<: *app-env
|
<<: *app-env
|
||||||
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${APP_RELEASE:-stable}
|
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${IMAGE_VERSION:-stable}
|
||||||
platform: ${DOCKER_PLATFORM:-}
|
platform: ${DOCKER_PLATFORM:-}
|
||||||
env_file:
|
env_file:
|
||||||
- ./plane.env
|
- .env
|
||||||
networks:
|
networks:
|
||||||
core:
|
core:
|
||||||
ipv4_address: 192.168.0.57
|
ipv4_address: 192.168.0.57
|
||||||
@ -379,9 +382,9 @@ EOF
|
|||||||
|
|
||||||
plane-redis:
|
plane-redis:
|
||||||
<<: *app-env
|
<<: *app-env
|
||||||
image: valkey/valkey:7.2.5-alpine
|
image: valkey/valkey:${VALKEY_RELEASE:-7.2.5-alpine}
|
||||||
env_file:
|
env_file:
|
||||||
- ./plane.env
|
- .env
|
||||||
networks:
|
networks:
|
||||||
core:
|
core:
|
||||||
ipv4_address: 192.168.0.58
|
ipv4_address: 192.168.0.58
|
||||||
@ -392,9 +395,9 @@ EOF
|
|||||||
|
|
||||||
plane-mq:
|
plane-mq:
|
||||||
<<: *app-env
|
<<: *app-env
|
||||||
image: rabbitmq:3.13.6-management-alpine
|
image: rabbitmq:${RABBITMQ_RELEASE:-3.13.6-management-alpine}
|
||||||
env_file:
|
env_file:
|
||||||
- ./plane.env
|
- .env
|
||||||
networks:
|
networks:
|
||||||
core:
|
core:
|
||||||
ipv4_address: 192.168.0.59
|
ipv4_address: 192.168.0.59
|
||||||
@ -404,9 +407,9 @@ EOF
|
|||||||
|
|
||||||
plane-minio:
|
plane-minio:
|
||||||
<<: *app-env
|
<<: *app-env
|
||||||
image: minio/minio:latest
|
image: minio/minio:${MINIO_RELEASE:-RELEASE.2024-12-18T13-15-44Z}
|
||||||
env_file:
|
env_file:
|
||||||
- ./plane.env
|
- .env
|
||||||
networks:
|
networks:
|
||||||
core:
|
core:
|
||||||
ipv4_address: 192.168.0.60
|
ipv4_address: 192.168.0.60
|
||||||
@ -435,9 +438,9 @@ EOF
|
|||||||
cat >> /federated/apps/plane/docker-compose.yml <<'EOF'
|
cat >> /federated/apps/plane/docker-compose.yml <<'EOF'
|
||||||
proxy:
|
proxy:
|
||||||
<<: *app-env
|
<<: *app-env
|
||||||
image: ${DOCKERHUB_USER:-makeplane}/plane-proxy:${APP_RELEASE:-stable}
|
image: ${DOCKERHUB_USER:-makeplane}/plane-proxy:${IMAGE_VERSION:-stable}
|
||||||
env_file:
|
env_file:
|
||||||
- ./plane.env
|
- .env
|
||||||
platform: ${DOCKER_PLATFORM:-}
|
platform: ${DOCKER_PLATFORM:-}
|
||||||
pull_policy: if_not_present
|
pull_policy: if_not_present
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@ -469,7 +472,8 @@ EOF
|
|||||||
-e "s,@POSTGRES_PASSWORD@,${POSTGRES_PASSWORD},g" \
|
-e "s,@POSTGRES_PASSWORD@,${POSTGRES_PASSWORD},g" \
|
||||||
-e "s,@EMAIL_PASSWORD@,${EMAIL_PASSWORD},g" \
|
-e "s,@EMAIL_PASSWORD@,${EMAIL_PASSWORD},g" \
|
||||||
/federated/apps/plane/docker-compose.yml \
|
/federated/apps/plane/docker-compose.yml \
|
||||||
/federated/apps/plane/plane.env
|
/federated/apps/plane/.env
|
||||||
|
chmod 600 /federated/apps/plane/.env
|
||||||
|
|
||||||
# Create database and user in postgresql
|
# Create database and user in postgresql
|
||||||
SQL="docker exec postgresql psql --csv -U postgres"
|
SQL="docker exec postgresql psql --csv -U postgres"
|
||||||
@ -478,12 +482,6 @@ EOF
|
|||||||
$SQL -c "GRANT ALL PRIVILEGES ON DATABASE plane TO plane" &> /dev/null
|
$SQL -c "GRANT ALL PRIVILEGES ON DATABASE plane TO plane" &> /dev/null
|
||||||
unset POSTGRES_PASSWORD
|
unset POSTGRES_PASSWORD
|
||||||
|
|
||||||
cat > /federated/apps/plane/.env <<EOF
|
|
||||||
#IMAGE_VERSION="v1.11.33"
|
|
||||||
EOF
|
|
||||||
chmod 600 /federated/apps/plane/.env
|
|
||||||
|
|
||||||
|
|
||||||
# migrator is usually started at the same time as plane - we need to
|
# migrator is usually started at the same time as plane - we need to
|
||||||
# run it manually once to create the initial database so we can make
|
# run it manually once to create the initial database so we can make
|
||||||
# modifications to it (like creating the admin user) before plane is
|
# modifications to it (like creating the admin user) before plane is
|
||||||
|
Loading…
x
Reference in New Issue
Block a user