fix(Umami): networking

master
arcbjorn 2 years ago
parent 296f72512d
commit 29f09b96a7

@ -4,6 +4,8 @@ services:
umami: umami:
image: ghcr.io/mikecao/umami:postgresql-latest image: ghcr.io/mikecao/umami:postgresql-latest
container_name: umami container_name: umami
restart: always
env_file: env_file:
- ../stack.env - ../stack.env
depends_on: depends_on:
@ -13,18 +15,20 @@ services:
- "${UMAMI_PORT}:3000" - "${UMAMI_PORT}:3000"
networks: networks:
- caddy-network - caddy-network
restart: always - umami-network
umami_db: umami_db:
image: postgres:12-alpine image: postgres:12-alpine
container_name: umami_db container_name: umami_db
restart: always
env_file: env_file:
- ../stack.env - ../stack.env
volumes: volumes:
- /containers/umami/schema.postgresql.sql:/docker-entrypoint-initdb.d/schema.postgresql.sql:ro - /containers/umami/schema.postgresql.sql:/docker-entrypoint-initdb.d/schema.postgresql.sql:ro
- /containers/umami/db:/var/lib/postgresql/data - /containers/umami/db:/var/lib/postgresql/data
restart: always networks:
- umami-network
volumes: volumes:
umami-db-data: umami-db-data:
@ -33,3 +37,4 @@ networks:
caddy-network: caddy-network:
external: true external: true
name: caddy-network name: caddy-network
umami-network:

Loading…
Cancel
Save