umami/docker-compose.yml

27 lines
661 B
YAML
Raw Normal View History

2020-08-22 18:00:35 +08:00
---
version: '3'
2020-08-19 12:23:04 +08:00
services:
umami:
image: ghcr.io/umami-software/umami:postgresql-latest
2020-08-19 12:23:04 +08:00
ports:
- "3000:3000"
environment:
2020-08-22 18:00:35 +08:00
DATABASE_URL: postgresql://umami:umami@db:5432/umami
DATABASE_TYPE: postgresql
2022-12-28 13:38:23 +08:00
APP_SECRET: replace-me-with-a-random-string
2020-08-22 18:00:35 +08:00
depends_on:
- db
restart: always
2020-08-22 18:00:35 +08:00
db:
image: postgres:12-alpine
2020-08-19 12:23:04 +08:00
environment:
2020-08-22 18:00:35 +08:00
POSTGRES_DB: umami
2020-08-19 12:23:04 +08:00
POSTGRES_USER: umami
POSTGRES_PASSWORD: umami
volumes:
2020-08-22 18:00:35 +08:00
- ./sql/schema.postgresql.sql:/docker-entrypoint-initdb.d/schema.postgresql.sql:ro
- umami-db-data:/var/lib/postgresql/data
restart: always
2020-08-19 12:23:04 +08:00
volumes:
2020-08-22 18:00:35 +08:00
umami-db-data: