Update owncloud/docker-compose.yml

Add in control via labels on all three containers
This commit is contained in:
2026-01-06 20:42:44 +00:00
parent f9975b9ccf
commit 0c23c61d6c

View File

@@ -2,6 +2,10 @@ services:
owncloud: owncloud:
image: owncloud/server:latest image: owncloud/server:latest
# container_name: owncloud_server # container_name: owncloud_server
deploy:
placement:
constraints:
- node.labels.target == here
restart: always restart: always
ports: ports:
- 8080:8080 - 8080:8080
@@ -59,6 +63,10 @@ services:
redis: redis:
image: redis:6 image: redis:6
# container_name: owncloud_redis # container_name: owncloud_redis
deploy:
placement:
constraints:
- node.labels.target == here
restart: always restart: always
command: ["--databases", "1"] command: ["--databases", "1"]
healthcheck: healthcheck: