selfhosted-owncloud/docker-stack.yml

73 lines
2.2 KiB
YAML
Raw Normal View History

2023-12-25 09:19:15 +01:00
version: "3.7"
2023-12-24 20:15:46 +01:00
services:
2023-12-25 09:19:15 +01:00
traefik:
image: traefik:v2.9.1
networks:
2023-12-25 10:00:11 +01:00
- web
2023-12-25 09:19:15 +01:00
command:
2023-12-25 10:00:11 +01:00
- --log.level=INFO
- --api.dashboard=true
- --api.insecure=false
- --providers.docker=true
- --providers.docker.swarmMode=true
- --providers.docker.exposedByDefault=false
- --entrypoints.web.address=:80
- --entrypoints.websecure.address=:443
- --certificatesresolvers.mytlschallenge.acme.tlschallenge=true
- --certificatesresolvers.mytlschallenge.acme.email=${TRAEFIK_ACME_MAIL}
- --certificatesresolvers.mytlschallenge.acme.storage=/letsencrypt/acme.json
2023-12-24 20:15:46 +01:00
ports:
2023-12-25 09:19:15 +01:00
- "80:80"
- "443:443"
2023-12-24 20:15:46 +01:00
volumes:
2023-12-25 10:00:11 +01:00
- /var/run/docker.sock:/var/run/docker.sock:ro
- traefik_certs:/letsencrypt
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN}`)
- traefik.http.routers.traefik.service=api@internal
- traefik.http.routers.traefik.entrypoints=websecure
- traefik.http.routers.traefik.tls.certresolver=mytlschallenge
2023-12-25 10:08:21 +01:00
- traefik.http.services.traefik.loadbalancer.server.port=8080 # Specify Traefik service port
2023-12-25 10:00:11 +01:00
placement:
constraints:
- node.role==manager
restart_policy:
condition: on-failure
2023-12-25 09:19:15 +01:00
ocis:
2023-12-25 10:00:11 +01:00
image: owncloud/ocis:${OCIS_DOCKER_TAG}
2023-12-25 09:19:15 +01:00
networks:
2023-12-25 10:00:11 +01:00
- web
2023-12-24 20:15:46 +01:00
environment:
2023-12-25 10:00:11 +01:00
OCIS_URL: https://${OCIS_DOMAIN}
OCIS_LOG_LEVEL: ${OCIS_LOG_LEVEL}
OCIS_LOG_COLOR: ${OCIS_LOG_COLOR}
PROXY_TLS: "false"
2023-12-25 09:19:15 +01:00
SETTINGS_GRPC_ADDR: 0.0.0.0:9191
2023-12-25 10:00:11 +01:00
OCIS_INSECURE: ${OCIS_INSECURE}
PROXY_ENABLE_BASIC_AUTH: ${PROXY_ENABLE_BASIC_AUTH}
IDM_ADMIN_PASSWORD: ${ADMIN_PASSWORD}
IDM_CREATE_DEMO_USERS: ${DEMO_USERS}
2023-12-24 20:15:46 +01:00
volumes:
2023-12-25 10:00:11 +01:00
- ./config/ocis:/etc/ocis
- ocis_data:/var/lib/ocis
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.ocis.rule=Host(`${OCIS_DOMAIN}`)
- traefik.http.routers.ocis.entrypoints=websecure
- traefik.http.routers.ocis.tls.certresolver=mytlschallenge
restart_policy:
condition: on-failure
2023-12-24 20:15:46 +01:00
2023-12-25 10:00:11 +01:00
networks:
web:
external: true
2023-12-24 20:15:46 +01:00
volumes:
2023-12-25 10:00:11 +01:00
traefik_certs:
ocis_data: