|
| 1 | +services: |
| 2 | + ocis: |
| 3 | + image: ${OCIS_IMAGE:-owncloud/ocis-rolling:master} |
| 4 | + entrypoint: /bin/sh |
| 5 | + command: ['-c', 'ocis init || true && ocis server'] |
| 6 | + environment: |
| 7 | + OCIS_URL: https://host.docker.internal:9200 |
| 8 | + OCIS_INSECURE: true |
| 9 | + OCIS_LOG_LEVEL: error |
| 10 | + IDM_ADMIN_PASSWORD: admin |
| 11 | + PROXY_ENABLE_BASIC_AUTH: true |
| 12 | + PROXY_TLS: 'false' |
| 13 | + WEB_ASSET_APPS_PATH: /web/apps |
| 14 | + WEB_UI_CONFIG_FILE: /web/config.json |
| 15 | + labels: |
| 16 | + traefik.enable: true |
| 17 | + traefik.http.routers.ocis.tls: true |
| 18 | + traefik.http.routers.ocis.rule: Host(`host.docker.internal`) && PathPrefix(`/`) |
| 19 | + traefik.http.routers.ocis.entrypoints: ocis |
| 20 | + traefik.http.services.ocis.loadbalancer.server.port: 9200 |
| 21 | + traefik.http.routers.ocis.middlewares: cors |
| 22 | + volumes: |
| 23 | + - ocis-config:/etc/ocis |
| 24 | + - ./docker/ocis.web.config.json:/web/config.json |
| 25 | + # apps |
| 26 | + - ./packages/web-app-cast/dist:/web/apps/cast |
| 27 | + - ./packages/web-app-draw-io/dist:/web/apps/draw-io |
| 28 | + - ./packages/web-app-external-sites/dist:/web/apps/external-sites |
| 29 | + - ./packages/web-app-progress-bars/dist:/web/apps/progress-bars |
| 30 | + depends_on: |
| 31 | + - traefik |
| 32 | + |
| 33 | + traefik: |
| 34 | + image: traefik:2.10.7 |
| 35 | + restart: unless-stopped |
| 36 | + entrypoint: |
| 37 | + [ |
| 38 | + '/bin/sh', |
| 39 | + '-c', |
| 40 | + "[ -f /certificates/server.key ] && ./entrypoint.sh $$@ || (apk add openssl && openssl req -subj '/CN=ocis.test' -x509 -sha256 -nodes -days 3650 -newkey rsa:2048 -keyout /certificates/server.key -out /certificates/server.crt && chmod -R 777 /certificates && ./entrypoint.sh $$@)" |
| 41 | + ] |
| 42 | + command: |
| 43 | + - '--pilot.dashboard=false' |
| 44 | + - '--log.level=DEBUG' |
| 45 | + - '--api.dashboard=true' |
| 46 | + - '--api.insecure=true' |
| 47 | + - '--providers.file.directory=/configs' |
| 48 | + - '--providers.docker=true' |
| 49 | + - '--providers.docker.exposedbydefault=false' |
| 50 | + - '--entrypoints.web.address=:80' |
| 51 | + - '--entrypoints.ocis.address=:9200' |
| 52 | + - '--entrypoints.ocis-federated.address=:10200' |
| 53 | + - '--entrypoints.websecure.address=:443' |
| 54 | + - '--entrypoints.websecure.http.middlewares=https_config@docker' |
| 55 | + - '--entrypoints.websecure.http.tls.options=default' |
| 56 | + labels: |
| 57 | + traefik.enable: true |
| 58 | + traefik.http.routers.http_catchall.rule: HostRegexp(`{any:.+}`) |
| 59 | + traefik.http.routers.http_catchall.entrypoints: web |
| 60 | + traefik.http.routers.http_catchall.middlewares: https_config |
| 61 | + traefik.http.middlewares.https_config.headers.sslRedirect: true |
| 62 | + traefik.http.middlewares.https_config.headers.stsSeconds: 63072000 |
| 63 | + traefik.http.middlewares.https_config.headers.stsIncludeSubdomains: true |
| 64 | + traefik.http.middlewares.cors.headers.accesscontrolallowmethods: '*' |
| 65 | + traefik.http.middlewares.cors.headers.accesscontrolallowheaders: '*' |
| 66 | + traefik.http.middlewares.cors.headers.accesscontrolalloworiginlist: '*' |
| 67 | + traefik.http.middlewares.cors.headers.accesscontrolexposeheaders: '*' |
| 68 | + traefik.http.middlewares.cors.headers.accesscontrolmaxage: 100 |
| 69 | + traefik.http.middlewares.cors.headers.addvaryheader: true |
| 70 | + ports: |
| 71 | + - '9200:9200' |
| 72 | + volumes: |
| 73 | + - './docker/traefik/certificates:/certificates' |
| 74 | + - './docker/traefik/configs:/configs' |
| 75 | + - '/var/run/docker.sock:/var/run/docker.sock:ro' |
| 76 | + |
| 77 | +volumes: |
| 78 | + ocis-config: |
| 79 | + |
| 80 | +networks: |
| 81 | + traefik: |
0 commit comments