From 0726462b8f0a28c04b43586742afb2c7f382dab3 Mon Sep 17 00:00:00 2001 From: "D. Scott Boggs" Date: Sat, 2 Sep 2023 07:17:07 -0400 Subject: [PATCH] change to public-facing config behind traefik --- docker-compose.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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