diff --git a/docker-compose.yml b/docker-compose.yml index a755561..4c55945 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,8 +3,7 @@ version: '3.5' services: ocis: image: owncloud/ocis - ports: - - 9200:9200 + expose: [ 9200 ] volumes: - type: bind source: ./mounts/config @@ -15,4 +14,14 @@ services: environment: OCIS_INSECURE: 'true' PROXY_HTTP_ADDR: 0.0.0.0:9200 - OCIS_URL: https://localhost:9200/ + PROXY_TLS: false + OCIS_URL: https://${PUBLIC_URL} + networks: [ web ] + labels: + traefik.http.routers.ocis.rule: Host(`${PUBLIC_URL}`) + traefik.http.routers.ocis.tls: true + traefik.http.routers.ocis.tls.certprovider: letsencrypt + +networks: + web: + external: true