[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
|
||||
msp=latest
|
||||
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
|
||||
|
||||
cat >/federated/apps/plane/plane.env <<'EOF'
|
||||
cat >/federated/apps/plane/.env <<'EOF'
|
||||
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
|
||||
SPACE_REPLICAS=1
|
||||
@ -96,7 +99,7 @@ EMAIL_FROM=admin@@DOMAIN@
|
||||
EMAIL_USE_TLS=1
|
||||
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
|
||||
|
||||
DOCKERHUB_USER=makeplane
|
||||
@ -156,14 +159,14 @@ x-app-env: &app-env
|
||||
services:
|
||||
web:
|
||||
<<: *app-env
|
||||
image: ${DOCKERHUB_USER:-makeplane}/plane-frontend:${APP_RELEASE:-stable}
|
||||
image: ${DOCKERHUB_USER:-makeplane}/plane-frontend:${IMAGE_VERSION:-stable}
|
||||
platform: ${DOCKER_PLATFORM:-}
|
||||
expose:
|
||||
- 3000
|
||||
ports:
|
||||
- 3000:3000
|
||||
env_file:
|
||||
- ./plane.env
|
||||
- .env
|
||||
EOF
|
||||
|
||||
if $USE_TRAEFIK; then
|
||||
@ -192,10 +195,10 @@ EOF
|
||||
|
||||
space:
|
||||
<<: *app-env
|
||||
image: ${DOCKERHUB_USER:-makeplane}/plane-space:${APP_RELEASE:-stable}
|
||||
image: ${DOCKERHUB_USER:-makeplane}/plane-space:${IMAGE_VERSION:-stable}
|
||||
platform: ${DOCKER_PLATFORM:-}
|
||||
env_file:
|
||||
- ./plane.env
|
||||
- .env
|
||||
networks:
|
||||
core:
|
||||
ipv4_address: 192.168.0.51
|
||||
@ -225,10 +228,10 @@ EOF
|
||||
|
||||
admin:
|
||||
<<: *app-env
|
||||
image: ${DOCKERHUB_USER:-makeplane}/plane-admin:${APP_RELEASE:-stable}
|
||||
image: ${DOCKERHUB_USER:-makeplane}/plane-admin:${IMAGE_VERSION:-stable}
|
||||
platform: ${DOCKER_PLATFORM:-}
|
||||
env_file:
|
||||
- ./plane.env
|
||||
- .env
|
||||
networks:
|
||||
core:
|
||||
ipv4_address: 192.168.0.52
|
||||
@ -257,10 +260,10 @@ EOF
|
||||
|
||||
live:
|
||||
<<: *app-env
|
||||
image: ${DOCKERHUB_USER:-makeplane}/plane-live:${APP_RELEASE:-stable}
|
||||
image: ${DOCKERHUB_USER:-makeplane}/plane-live:${IMAGE_VERSION:-stable}
|
||||
platform: ${DOCKER_PLATFORM:-}
|
||||
env_file:
|
||||
- ./plane.env
|
||||
- .env
|
||||
networks:
|
||||
core:
|
||||
ipv4_address: 192.168.0.53
|
||||
@ -289,10 +292,10 @@ EOF
|
||||
|
||||
api:
|
||||
<<: *app-env
|
||||
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${APP_RELEASE:-stable}
|
||||
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${IMAGE_VERSION:-stable}
|
||||
platform: ${DOCKER_PLATFORM:-}
|
||||
env_file:
|
||||
- ./plane.env
|
||||
- .env
|
||||
networks:
|
||||
core:
|
||||
ipv4_address: 192.168.0.54
|
||||
@ -324,10 +327,10 @@ EOF
|
||||
|
||||
worker:
|
||||
<<: *app-env
|
||||
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${APP_RELEASE:-stable}
|
||||
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${IMAGE_VERSION:-stable}
|
||||
platform: ${DOCKER_PLATFORM:-}
|
||||
env_file:
|
||||
- ./plane.env
|
||||
- .env
|
||||
networks:
|
||||
core:
|
||||
ipv4_address: 192.168.0.55
|
||||
@ -343,10 +346,10 @@ EOF
|
||||
|
||||
beat-worker:
|
||||
<<: *app-env
|
||||
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${APP_RELEASE:-stable}
|
||||
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${IMAGE_VERSION:-stable}
|
||||
platform: ${DOCKER_PLATFORM:-}
|
||||
env_file:
|
||||
- ./plane.env
|
||||
- .env
|
||||
networks:
|
||||
core:
|
||||
ipv4_address: 192.168.0.56
|
||||
@ -362,10 +365,10 @@ EOF
|
||||
|
||||
migrator:
|
||||
<<: *app-env
|
||||
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${APP_RELEASE:-stable}
|
||||
image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${IMAGE_VERSION:-stable}
|
||||
platform: ${DOCKER_PLATFORM:-}
|
||||
env_file:
|
||||
- ./plane.env
|
||||
- .env
|
||||
networks:
|
||||
core:
|
||||
ipv4_address: 192.168.0.57
|
||||
@ -379,9 +382,9 @@ EOF
|
||||
|
||||
plane-redis:
|
||||
<<: *app-env
|
||||
image: valkey/valkey:7.2.5-alpine
|
||||
image: valkey/valkey:${VALKEY_RELEASE:-7.2.5-alpine}
|
||||
env_file:
|
||||
- ./plane.env
|
||||
- .env
|
||||
networks:
|
||||
core:
|
||||
ipv4_address: 192.168.0.58
|
||||
@ -392,9 +395,9 @@ EOF
|
||||
|
||||
plane-mq:
|
||||
<<: *app-env
|
||||
image: rabbitmq:3.13.6-management-alpine
|
||||
image: rabbitmq:${RABBITMQ_RELEASE:-3.13.6-management-alpine}
|
||||
env_file:
|
||||
- ./plane.env
|
||||
- .env
|
||||
networks:
|
||||
core:
|
||||
ipv4_address: 192.168.0.59
|
||||
@ -404,9 +407,9 @@ EOF
|
||||
|
||||
plane-minio:
|
||||
<<: *app-env
|
||||
image: minio/minio:latest
|
||||
image: minio/minio:${MINIO_RELEASE:-RELEASE.2024-12-18T13-15-44Z}
|
||||
env_file:
|
||||
- ./plane.env
|
||||
- .env
|
||||
networks:
|
||||
core:
|
||||
ipv4_address: 192.168.0.60
|
||||
@ -435,9 +438,9 @@ EOF
|
||||
cat >> /federated/apps/plane/docker-compose.yml <<'EOF'
|
||||
proxy:
|
||||
<<: *app-env
|
||||
image: ${DOCKERHUB_USER:-makeplane}/plane-proxy:${APP_RELEASE:-stable}
|
||||
image: ${DOCKERHUB_USER:-makeplane}/plane-proxy:${IMAGE_VERSION:-stable}
|
||||
env_file:
|
||||
- ./plane.env
|
||||
- .env
|
||||
platform: ${DOCKER_PLATFORM:-}
|
||||
pull_policy: if_not_present
|
||||
restart: unless-stopped
|
||||
@ -469,7 +472,8 @@ EOF
|
||||
-e "s,@POSTGRES_PASSWORD@,${POSTGRES_PASSWORD},g" \
|
||||
-e "s,@EMAIL_PASSWORD@,${EMAIL_PASSWORD},g" \
|
||||
/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
|
||||
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
|
||||
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
|
||||
# run it manually once to create the initial database so we can make
|
||||
# modifications to it (like creating the admin user) before plane is
|
||||
|
Loading…
x
Reference in New Issue
Block a user