1
0
mirror of https://github.com/kremalicious/umami.git synced 2024-12-23 18:04:47 +01:00
umami/docker-compose.yml

25 lines
572 B
YAML
Raw Normal View History

2020-08-22 12:00:35 +02:00
---
version: '3'
2020-08-19 06:23:04 +02:00
services:
umami:
build: .
ports:
- "3000:3000"
environment:
2020-08-22 12:00:35 +02:00
DATABASE_URL: postgresql://umami:umami@db:5432/umami
DATABASE_TYPE: postgresql
2020-08-19 06:23:04 +02:00
HASH_SALT: replace-me-with-a-random-string
2020-08-22 12:00:35 +02:00
depends_on:
- db
db:
2020-08-19 06:23:04 +02:00
image: postgres:alpine
environment:
2020-08-22 12:00:35 +02:00
POSTGRES_DB: umami
2020-08-19 06:23:04 +02:00
POSTGRES_USER: umami
POSTGRES_PASSWORD: umami
volumes:
2020-08-22 12:00:35 +02:00
- ./sql/schema.postgresql.sql:/docker-entrypoint-initdb.d/schema.postgresql.sql:ro
- umami-db-data:/var/lib/postgresql/data
2020-08-19 06:23:04 +02:00
volumes:
2020-08-22 12:00:35 +02:00
umami-db-data: