ocis/compose.yml

75 lines
2.0 KiB
YAML

---
version: "3.8"
services:
app:
image: "owncloud/ocis:2.0.0-beta.5"
configs:
- source: app_entrypoint
target: /docker-entrypoint.sh
mode: 0555
environment:
- PROXY_TLS="false"
- OCIS_INSECURE="false"
- IDM_CREATE_DEMO_USERS="false"
- PROXY_AUTOPROVISION_ACCOUNTS="false"
- OCIS_URL=${DOMAIN}
- OCIS_LOG_LEVEL=error
- OCIS_LOG_COLOR="false"
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=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
secrets:
db_password:
name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}
external: true
db_root_password:
name: ${STACK_NAME}_db_root_password_${SECRET_DB_ROOT_PASSWORD_VERSION}
external: true
internal_token:
name: ${STACK_NAME}_internal_token_${SECRET_INTERNAL_TOKEN_VERSION}
external: true
jwt_secret:
name: ${STACK_NAME}_jwt_secret_${SECRET_JWT_SECRET_VERSION}
external: true
secret_key:
name: ${STACK_NAME}_secret_key_${SECRET_SECRET_KEY_VERSION}
external: true
volumes:
data:
config:
mariadb: