feat: structest
This commit is contained in:
parent
9c1c5bbe0e
commit
770bf941a1
3 changed files with 183 additions and 0 deletions
61
stacks/structures/_template_nextcloud/docker-compose.yaml
Normal file
61
stacks/structures/_template_nextcloud/docker-compose.yaml
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
|
||||
services:
|
||||
nextcloud:
|
||||
image: 'lscr.io/linuxserver/nextcloud:latest'
|
||||
environment:
|
||||
- SERVICE_URL_NEXTCLOUD_80
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- 'TZ=${TZ:-Europe/Paris}'
|
||||
- 'POSTGRES_DB=${POSTGRES_DB:-nextcloud}'
|
||||
- 'POSTGRES_USER=${SERVICE_USER_POSTGRES}'
|
||||
- 'POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}'
|
||||
- POSTGRES_HOST=nextcloud-db
|
||||
- REDIS_HOST=redis
|
||||
- REDIS_PORT=6379
|
||||
volumes:
|
||||
- '/data/lail-structures/XXXXXX/nextcloud/nextcloud-config:/config'
|
||||
- '/data/lail-structures/XXXXXX/nextcloud/nextcloud-data:/data'
|
||||
depends_on:
|
||||
nextcloud-db:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- curl
|
||||
- '-f'
|
||||
- 'http://127.0.0.1:80'
|
||||
interval: 2s
|
||||
timeout: 10s
|
||||
retries: 15
|
||||
nextcloud-db:
|
||||
image: 'postgres:16-alpine'
|
||||
volumes:
|
||||
- 'nextcloud-postgresql-data:/var/lib/postgresql/data'
|
||||
environment:
|
||||
- 'POSTGRES_USER=${SERVICE_USER_POSTGRES}'
|
||||
- 'POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}'
|
||||
- 'POSTGRES_DB=${POSTGRES_DB:-nextcloud}'
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
redis:
|
||||
image: 'redis:7.4-alpine'
|
||||
volumes:
|
||||
- 'nextcloud-redis-data:/data'
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- redis-cli
|
||||
- PING
|
||||
interval: 5s
|
||||
timeout: 10s
|
||||
retries: 20
|
||||
|
||||
|
||||
61
stacks/structures/archijeux/nextcloud/docker-compose.yaml
Normal file
61
stacks/structures/archijeux/nextcloud/docker-compose.yaml
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
|
||||
services:
|
||||
nextcloud:
|
||||
image: 'lscr.io/linuxserver/nextcloud:latest'
|
||||
environment:
|
||||
- SERVICE_URL_NEXTCLOUD_80
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- 'TZ=${TZ:-Europe/Paris}'
|
||||
- 'POSTGRES_DB=${POSTGRES_DB:-nextcloud}'
|
||||
- 'POSTGRES_USER=${SERVICE_USER_POSTGRES}'
|
||||
- 'POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}'
|
||||
- POSTGRES_HOST=nextcloud-db
|
||||
- REDIS_HOST=redis
|
||||
- REDIS_PORT=6379
|
||||
volumes:
|
||||
- '/data/lail-structures/archijeux/nextcloud/nextcloud-config:/config'
|
||||
- '/data/lail-structures/archijeux/nextcloud/nextcloud-data:/data'
|
||||
depends_on:
|
||||
nextcloud-db:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- curl
|
||||
- '-f'
|
||||
- 'http://127.0.0.1:80'
|
||||
interval: 2s
|
||||
timeout: 10s
|
||||
retries: 15
|
||||
nextcloud-db:
|
||||
image: 'postgres:16-alpine'
|
||||
volumes:
|
||||
- 'nextcloud-postgresql-data:/var/lib/postgresql/data'
|
||||
environment:
|
||||
- 'POSTGRES_USER=${SERVICE_USER_POSTGRES}'
|
||||
- 'POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}'
|
||||
- 'POSTGRES_DB=${POSTGRES_DB:-nextcloud}'
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
redis:
|
||||
image: 'redis:7.4-alpine'
|
||||
volumes:
|
||||
- 'nextcloud-redis-data:/data'
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- redis-cli
|
||||
- PING
|
||||
interval: 5s
|
||||
timeout: 10s
|
||||
retries: 20
|
||||
|
||||
|
||||
61
stacks/structures/structest/nextcloud/docker-compose.yaml
Normal file
61
stacks/structures/structest/nextcloud/docker-compose.yaml
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
|
||||
services:
|
||||
nextcloud:
|
||||
image: 'lscr.io/linuxserver/nextcloud:latest'
|
||||
environment:
|
||||
- SERVICE_URL_NEXTCLOUD_80
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- 'TZ=${TZ:-Europe/Paris}'
|
||||
- 'POSTGRES_DB=${POSTGRES_DB:-nextcloud}'
|
||||
- 'POSTGRES_USER=${SERVICE_USER_POSTGRES}'
|
||||
- 'POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}'
|
||||
- POSTGRES_HOST=nextcloud-db
|
||||
- REDIS_HOST=redis
|
||||
- REDIS_PORT=6379
|
||||
volumes:
|
||||
- '/data/lail-structures/structest/nextcloud/nextcloud-config:/config'
|
||||
- '/data/lail-structures/structest/nextcloud/nextcloud-data:/data'
|
||||
depends_on:
|
||||
nextcloud-db:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- curl
|
||||
- '-f'
|
||||
- 'http://127.0.0.1:80'
|
||||
interval: 2s
|
||||
timeout: 10s
|
||||
retries: 15
|
||||
nextcloud-db:
|
||||
image: 'postgres:16-alpine'
|
||||
volumes:
|
||||
- 'nextcloud-postgresql-data:/var/lib/postgresql/data'
|
||||
environment:
|
||||
- 'POSTGRES_USER=${SERVICE_USER_POSTGRES}'
|
||||
- 'POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}'
|
||||
- 'POSTGRES_DB=${POSTGRES_DB:-nextcloud}'
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
redis:
|
||||
image: 'redis:7.4-alpine'
|
||||
volumes:
|
||||
- 'nextcloud-redis-data:/data'
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- redis-cli
|
||||
- PING
|
||||
interval: 5s
|
||||
timeout: 10s
|
||||
retries: 20
|
||||
|
||||
|
||||
Loading…
Reference in a new issue