From 407cee363f13c9fe4da5cae176547dd50797262a Mon Sep 17 00:00:00 2001 From: mg Date: Thu, 20 Apr 2023 21:10:10 +0200 Subject: [PATCH] docker-compose: depends (#515) Co-authored-by: Michael Grote Reviewed-on: https://git.mgrote.net/mg/homeserver/pulls/515 --- docker-compose/miniflux/docker-compose.yml.j2 | 4 +++- docker-compose/nextcloud/docker-compose.yml.j2 | 2 +- docker-compose/registry/docker-compose.yml.j2 | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docker-compose/miniflux/docker-compose.yml.j2 b/docker-compose/miniflux/docker-compose.yml.j2 index 2fa9df49..90bf37ad 100644 --- a/docker-compose/miniflux/docker-compose.yml.j2 +++ b/docker-compose/miniflux/docker-compose.yml.j2 @@ -28,7 +28,7 @@ services: traefik.http.routers.miniflux.tls.certresolver: resolver_letsencrypt traefik.http.routers.miniflux.entrypoints: entry_https traefik.http.services.miniflux.loadbalancer.server.port: 8080 - + traefik.http.routers.miniflux.middlewares: error-pages-middleware com.centurylinklabs.watchtower.enable: true @@ -55,6 +55,8 @@ services: ######## Miniflux-Filter ######## mf-filter: container_name: mf-filter + depends_on: + - miniflux restart: always environment: TZ: Europe/Berlin diff --git a/docker-compose/nextcloud/docker-compose.yml.j2 b/docker-compose/nextcloud/docker-compose.yml.j2 index 2bcc86f7..73f21b03 100644 --- a/docker-compose/nextcloud/docker-compose.yml.j2 +++ b/docker-compose/nextcloud/docker-compose.yml.j2 @@ -34,7 +34,7 @@ services: com.centurylinklabs.watchtower.enable: true ######## cron ######## - cron: + nextcloud-cron: container_name: nextcloud-cron image: rcdailey/nextcloud-cronjob:latest restart: unless-stopped diff --git a/docker-compose/registry/docker-compose.yml.j2 b/docker-compose/registry/docker-compose.yml.j2 index 284b2105..f53f556b 100644 --- a/docker-compose/registry/docker-compose.yml.j2 +++ b/docker-compose/registry/docker-compose.yml.j2 @@ -10,6 +10,9 @@ services: networks: - traefik - intern + depends_on: + - oci-registry-ui + - oci-registry-redis environment: TZ: Europe/Berlin REGISTRY_AUTH: none