redis crone
master
This commit is contained in:
parent
7ec2a92da9
commit
2fed940f12
@ -1,8 +1,8 @@
|
||||
version: '3'
|
||||
version: '3.6'
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres:latest
|
||||
image: postgres:11
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
environment:
|
||||
@ -17,13 +17,42 @@ services:
|
||||
condition: on-failure
|
||||
delay: 5s
|
||||
|
||||
redis:
|
||||
image: redis:alpine
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
networks:
|
||||
- internal
|
||||
deploy:
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
delay: 5s
|
||||
|
||||
cron:
|
||||
image: nextcloud:stable
|
||||
volumes:
|
||||
- nextcloud:/var/www/html
|
||||
- apps:/var/www/html/custom_apps
|
||||
- config:/var/www/html/config
|
||||
- data:/var/www/html/data
|
||||
entrypoint: /cron.sh
|
||||
networks:
|
||||
- internal
|
||||
deploy:
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
delay: 5s
|
||||
|
||||
nextcloud:
|
||||
image: nextcloud:latest
|
||||
image: nextcloud:stable
|
||||
environment:
|
||||
- POSTGRES_USER=nextcloud
|
||||
- POSTGRES_PASSWORD=nextcloud
|
||||
- POSTGRES_DB=nextcloud
|
||||
- POSTGRES_HOST=db:5432
|
||||
- REDIS_HOST=redis
|
||||
volumes:
|
||||
- nextcloud:/var/www/html
|
||||
- apps:/var/www/html/custom_apps
|
||||
@ -33,6 +62,12 @@ services:
|
||||
- internal
|
||||
- external
|
||||
- traefik-net
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost/cron.php"]
|
||||
interval: 1m30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
@ -54,6 +89,7 @@ services:
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
redis_data:
|
||||
nextcloud:
|
||||
apps:
|
||||
config:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user