From 955080f54dbe70fa2d3a383a3fc59792ce743558 Mon Sep 17 00:00:00 2001 From: pizzaniels Date: Fri, 13 Jan 2023 19:26:57 +0100 Subject: [PATCH] add traefik labels for files.geokunis2.nl --- roles/nsd/files/zones/geokunis2.nl | 1 + roles/seafile/templates/docker-compose.yml.j2 | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/roles/nsd/files/zones/geokunis2.nl b/roles/nsd/files/zones/geokunis2.nl index 4ca2801..a6b0ac4 100644 --- a/roles/nsd/files/zones/geokunis2.nl +++ b/roles/nsd/files/zones/geokunis2.nl @@ -14,6 +14,7 @@ geokunis2.nl. IN SOA ns.geokunis2.nl. niels.kunis.nl. 2023010900 1800 3600 12096 jenl IN A 217.123.41.225 wg IN A 84.245.14.149 kms IN A 84.245.14.149 +files IN A 84.245.14.149 _dmarc IN TXT "v=DMARC1; p=reject; fo=0; adkim=s; aspf=s; pct=100; rf=afrf; sp=reject" ns A 84.245.14.149 AAAA 2a02:58:19a:f730:b62e:99ff:fe77:1bda diff --git a/roles/seafile/templates/docker-compose.yml.j2 b/roles/seafile/templates/docker-compose.yml.j2 index 13b169b..3b49331 100644 --- a/roles/seafile/templates/docker-compose.yml.j2 +++ b/roles/seafile/templates/docker-compose.yml.j2 @@ -37,8 +37,21 @@ services: - SEAFILE_ADMIN_PASSWORD={{ seafile_admin_password }} # Specifies Seafile admin password. - SEAFILE_SERVER_LETSENCRYPT=false # Whether to use https or not. - SEAFILE_SERVER_HOSTNAME={{ seafile_domain }} # Specifies your host name if https is enabled. + labels: + - traefik.http.routers.seafile.entrypoints=websecure + - traefik.http.routers.seafile.rule=Host(`files.geokunis2.nl`) + - traefik.http.routers.seafile.tls=true + - traefik.http.routers.seafile.tls.certresolver=geokunis + - traefik.http.services.seafile.loadbalancer.server.port=80 + - traefik.http.routers.seafile.service=seafile + - traefik.docker.network=traefik depends_on: - db - memcached networks: - - default \ No newline at end of file + - default + - traefik + +networks: + traefik: + external: true \ No newline at end of file