Update nextcloud docker-compose.yaml with:
- Update network settings - Set file permissions on start for better migration - some clean up
This commit is contained in:
parent
2faad67b5c
commit
29713c9680
@ -1,9 +1,7 @@
|
|||||||
version: '3.5'
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
external:
|
name: traefik_default
|
||||||
name: traefik_default
|
external: true
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nextcloud-db:
|
nextcloud-db:
|
||||||
@ -43,9 +41,12 @@ services:
|
|||||||
- nextcloud-db
|
- nextcloud-db
|
||||||
- nextcloud-redis
|
- nextcloud-redis
|
||||||
container_name: nextcloud-app
|
container_name: nextcloud-app
|
||||||
|
command: >
|
||||||
|
bash -c 'chown -R www-data:www-data ${NEXTCLOUD_DATA_DIR} && chown -R www-data:www-data /var/www/html && chmod 755 ${NEXTCLOUD_DATA_DIR}/.ocdata && /entrypoint.sh apache2-foreground'
|
||||||
env_file: live.env
|
env_file: live.env
|
||||||
environment:
|
environment:
|
||||||
- NEXTCLOUD_TRUSTED_DOMAINS='${NEXTCLOUD_FQDN}'
|
- NEXTCLOUD_TRUSTED_DOMAINS='${NEXTCLOUD_FQDN}'
|
||||||
|
- NEXTCLOUD_DATA_DIR='${NEXTCLOUD_DATA_DIR}'
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "${NEXTCLOUD_FQDN}:${TRAEFIK_CONTAINER_IP}"
|
- "${NEXTCLOUD_FQDN}:${TRAEFIK_CONTAINER_IP}"
|
||||||
- "${COLLABORA_FQDN}:${TRAEFIK_CONTAINER_IP}"
|
- "${COLLABORA_FQDN}:${TRAEFIK_CONTAINER_IP}"
|
||||||
@ -77,17 +78,19 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ${NEXTCLOUD_ROOT}/html:/var/www/html
|
- ${NEXTCLOUD_ROOT}/html:/var/www/html
|
||||||
- ${NEXTCLOUD_ROOT}/data:/srv/nextcloud/data
|
- ${NEXTCLOUD_ROOT}/data:${NEXTCLOUD_DATA_DIR}
|
||||||
|
|
||||||
nextcloud-cron:
|
nextcloud-cron:
|
||||||
image: nextcloud:28
|
image: nextcloud:28
|
||||||
container_name: nextcloud-cron
|
container_name: nextcloud-cron
|
||||||
|
command: >
|
||||||
|
bash -c 'chown -R www-data:www-data ${NEXTCLOUD_DATA_DIR} && chown -R www-data:www-data /var/www/html && chmod 755 ${NEXTCLOUD_DATA_DIR}/.ocdata && /entrypoint.sh apache2-foreground'
|
||||||
labels:
|
labels:
|
||||||
- "com.centurylinklabs.watchtower.enable=true"
|
- "com.centurylinklabs.watchtower.enable=true"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ${NEXTCLOUD_ROOT}/html:/var/www/html
|
- ${NEXTCLOUD_ROOT}/html:/var/www/html
|
||||||
- ${NEXTCLOUD_ROOT}/data:/srv/nextcloud/data
|
- ${NEXTCLOUD_ROOT}/data:${NEXTCLOUD_DATA_DIR}
|
||||||
entrypoint: /cron.sh
|
entrypoint: /cron.sh
|
||||||
depends_on:
|
depends_on:
|
||||||
- nextcloud-db
|
- nextcloud-db
|
||||||
|
Loading…
Reference in New Issue
Block a user