mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Add Dockerfile and docker-compose.yml
This commit is contained in:
parent
2d69b3087f
commit
d15d23539e
3 changed files with 46 additions and 1 deletions
25
docker-compose.yml
Normal file
25
docker-compose.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
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:
|
||||
Loading…
Add table
Add a link
Reference in a new issue