Update compose file orders
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
services:
|
||||
nextcloud_db:
|
||||
image: docker.io/library/postgres:17.5
|
||||
container_name: nextcloud_db
|
||||
image: docker.io/library/postgres:17.5
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
@@ -12,7 +13,6 @@ services:
|
||||
- ${DB_PORT}:5432
|
||||
networks:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"]
|
||||
start_period: 10s
|
||||
@@ -21,8 +21,9 @@ services:
|
||||
retries: 3
|
||||
|
||||
nextcloud_valkey:
|
||||
image: docker.io/valkey/valkey:8.1.3
|
||||
container_name: nextcloud_valkey
|
||||
image: docker.io/valkey/valkey:8.1.3
|
||||
restart: unless-stopped
|
||||
command: valkey-server --save 60 1 --requirepass ${VALKEY_PASSWORD}
|
||||
volumes:
|
||||
- ${APPDATA_PATH}/nextcloud/valkey:/data
|
||||
@@ -30,7 +31,6 @@ services:
|
||||
- ${VALKEY_PORT}:6379
|
||||
networks:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "echo 'auth ${VALKEY_PASSWORD}\nping' | valkey-cli | grep PONG"]
|
||||
start_period: 20s
|
||||
@@ -41,6 +41,7 @@ services:
|
||||
nextcloud_app:
|
||||
image: docker.io/library/nextcloud:31.0.7
|
||||
container_name: nextcloud_app
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
nextcloud_db:
|
||||
condition: service_healthy
|
||||
@@ -64,11 +65,11 @@ services:
|
||||
networks:
|
||||
- frontend
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
|
||||
nextcloud_cron:
|
||||
image: docker.io/library/nextcloud:31.0.7
|
||||
container_name: nextcloud_cron
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- nextcloud_app
|
||||
entrypoint: /cron.sh
|
||||
@@ -88,7 +89,6 @@ services:
|
||||
networks:
|
||||
- frontend
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
|
||||
Reference in New Issue
Block a user