From 29f09b96a7cfa954b7bd91b326133866f0c73975 Mon Sep 17 00:00:00 2001 From: arcbjorn Date: Fri, 28 Oct 2022 12:36:02 -0300 Subject: [PATCH] fix(Umami): networking --- umami/docker-compose.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/umami/docker-compose.yaml b/umami/docker-compose.yaml index 381cec5..f1c7e0e 100644 --- a/umami/docker-compose.yaml +++ b/umami/docker-compose.yaml @@ -4,6 +4,8 @@ services: umami: image: ghcr.io/mikecao/umami:postgresql-latest container_name: umami + restart: always + env_file: - ../stack.env depends_on: @@ -13,18 +15,20 @@ services: - "${UMAMI_PORT}:3000" networks: - caddy-network - restart: always + - umami-network umami_db: image: postgres:12-alpine container_name: umami_db + restart: always env_file: - ../stack.env volumes: - /containers/umami/schema.postgresql.sql:/docker-entrypoint-initdb.d/schema.postgresql.sql:ro - /containers/umami/db:/var/lib/postgresql/data - restart: always + networks: + - umami-network volumes: umami-db-data: @@ -33,3 +37,4 @@ networks: caddy-network: external: true name: caddy-network + umami-network: