umami/docker-compose.yml
Adrián Villanueva 536ef7b073
Updated docker-compose for persistent pgsql volume
There was a typo and the db data storage wasn't being created, in this way it is created in the same folder as the docker-compose.yml file.
2021-03-08 14:23:09 +01:00

24 lines
615 B
YAML

---
version: '3'
services:
umami:
image: ghcr.io/mikecao/umami:postgresql-latest
ports:
- "3000:3000"
environment:
DATABASE_URL: postgresql://umami:umami@db:5432/umami
DATABASE_TYPE: postgresql
HASH_SALT: replace-me-with-a-random-string
depends_on:
- db
db:
image: postgres:12-alpine
environment:
POSTGRES_DB: umami
POSTGRES_USER: umami
POSTGRES_PASSWORD: umami
volumes:
- ./sql/schema.postgresql.sql:/docker-entrypoint-initdb.d/schema.postgresql.sql:ro
- ./umami-db-data:/var/lib/postgresql/data
volumes:
umami-db-data: