Refactor docker-compose files
This commit is contained in:
33
umami/docker-compose.yml
Normal file
33
umami/docker-compose.yml
Normal 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
|
Reference in New Issue
Block a user