Refactor docker-compose files

This commit is contained in:
2022-08-29 14:37:55 +03:00
parent 7b0636312c
commit 9c051ed370
28 changed files with 624 additions and 700 deletions

33
umami/docker-compose.yml Normal file
View File

@@ -0,0 +1,33 @@
version: '3.9'
services:
umami:
image: ghcr.io/mikecao/umami:postgresql-latest
restart: unless-stopped
environment:
DATABASE_URL: postgresql://umami:umami@db:5432/umami
DATABASE_TYPE: postgresql
HASH_SALT: ${SALT}
TRACKER_SCRIPT_NAME: u
depends_on:
- db
networks:
- default
- routing
db:
image: postgres:13.4
restart: unless-stopped
environment:
POSTGRES_DB: umami
POSTGRES_USER: umami
POSTGRES_PASSWORD: umami
volumes:
- '/home/nick/configs/umami/schema.postgresql.sql:/docker-entrypoint-initdb.d/schema.postgresql.sql:ro'
- '/home/nick/configs/umami/data:/var/lib/postgresql/data'
user: '1000:1000'
networks:
routing:
external: true
name: routing