mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
26 lines
614 B
YAML
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:
|