compose.yaml erneut hinzugefügt
This commit is contained in:
Executable
+72
@@ -0,0 +1,72 @@
|
||||
services:
|
||||
nextcloud:
|
||||
container_name: nextcloud
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
com.hanold.environment: production
|
||||
hostname: https://nextcloud-app.hanold.online
|
||||
volumes:
|
||||
- ./nextcloud-data:/var/www/html
|
||||
# - /media/webdav/Dokumente:/mnt/WebDav_Dokumente
|
||||
- /media/Daten/Nextcloud:/mnt/Heimserver
|
||||
tmpfs:
|
||||
- /tmp:size=1G # Ensures /tmp writable, clears restarts
|
||||
init: true
|
||||
ports:
|
||||
- 9180:80
|
||||
environment:
|
||||
- MYSQL_HOST=192.168.178.170
|
||||
- MYSQL_DATABASE=nextcloud
|
||||
- MYSQL_USER=nextcloud
|
||||
- MYSQL_PASSWORD=dbpass
|
||||
- NEXTCLOUD_ADMIN_USER=admin
|
||||
- NEXTCLOUD_ADMIN_PASSWORD=kNxMAUj1L391QuAWxBkJ
|
||||
- REDIS_HOST=192.168.178.183
|
||||
- REDIS_HOST_PORT=9379
|
||||
- MEMCACHE_HOST=192.168.178.183
|
||||
- MEMCACHE_PORT=9379
|
||||
# - PUID=1000
|
||||
# - PGID=1000
|
||||
image: nextcloud:latest
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 4G
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- "runuser -u www-data -- php /var/www/html/occ status | grep -e
|
||||
'installed: true' -e 'maintenance: false' -e 'needsDbUpgrade: false' |
|
||||
wc -l | grep -q 3 || exit 1"
|
||||
interval: 60s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 20s
|
||||
collabora:
|
||||
image: collabora/code:latest
|
||||
restart: unless-stopped
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 4G
|
||||
cap_add:
|
||||
- MKNOD
|
||||
- SYS_ADMIN
|
||||
environment:
|
||||
- domain=nextcloud-app\.hanold\.online
|
||||
# - username=admin # Or blank
|
||||
# - password=yourpass
|
||||
- extra_params=--o:ssl.enable=false # If internal; true + certs for prod
|
||||
ports:
|
||||
- 9380:9980
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- curl
|
||||
- -f
|
||||
- http://192.168.178.183:9380
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 60s
|
||||
networks: {}
|
||||
Reference in New Issue
Block a user