umami/docker-compose.yml
2020-08-19 00:25:05 -04:00

26 lines
614 B
YAML

version: '3.8'
services:
umami:
build: .
ports:
- "3000:3000"
environment:
DATABASE_URL: postgresql://umami:umami@postgres:5432/umami
HASH_SALT: replace-me-with-a-random-string
postgres:
image: postgres:alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: umami
POSTGRES_PASSWORD: umami
volumes:
- type: bind
source: ./sql/schema.postgresql.sql
target: /docker-entrypoint-initdb.d/schema.postgresql.sql
- type: volume
source: postgres-data
target: /var/lib/postgresql/data
volumes:
postgres-data: