63 lines
1.7 KiB
YAML
63 lines
1.7 KiB
YAML
---
|
|
version: "3.8"
|
|
|
|
services:
|
|
app:
|
|
image: "owncloud/ocis${OCIS_DOCKER_TAG}"
|
|
configs:
|
|
- source: app_entrypoint
|
|
target: /docker-entrypoint.sh
|
|
mode: 0555
|
|
environment:
|
|
- PROXY_TLS=false
|
|
- OCIS_INSECURE=false
|
|
- DEMO_USERS=false
|
|
- IDM_CREATE_DEMO_USERS=false
|
|
- PROXY_AUTOPROVISION_ACCOUNTS=true
|
|
- PROXY_OIDC_REWRITE_WELLKNOWN=true
|
|
- OCIS_URL=https://${DOMAIN}
|
|
- OCIS_LOG_LEVEL=${OCIS_LOG_LEVEL:-error}
|
|
- OCIS_LOG_COLOR=false
|
|
- OCIS_OIDC_ISSUER=
|
|
- WEB_OIDC_CLIENT_ID=
|
|
- OCIS_OIDC_CLIENT_ID=
|
|
- GATEWAY_GRPC_ADDR=0.0.0.0:9142 # make the REVA gateway accessible to the app drivers
|
|
volumes:
|
|
- config:/etc/ocis
|
|
- data:/var/lib/ocis
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
networks:
|
|
- proxy
|
|
- internal
|
|
entrypoint: /docker-entrypoint.sh
|
|
deploy:
|
|
update_config:
|
|
failure_action: rollback
|
|
order: start-first
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=9200"
|
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
|
- "backupbot.backup=true"
|
|
- "backupbot.backup.path=/etc/ocis/,/var/lib/ocis/"
|
|
- coop-cloud.${STACK_NAME}.version=0.1.0+2.0.0-beta.5
|
|
|
|
|
|
networks:
|
|
internal:
|
|
proxy:
|
|
external: true
|
|
|
|
configs:
|
|
app_entrypoint:
|
|
name: ${STACK_NAME}_app_entrypoint_${APP_ENTRYPOINT_VERSION}
|
|
file: entrypoint.sh.tmpl
|
|
template_driver: golang
|
|
|
|
volumes:
|
|
data:
|
|
config:
|