Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
fix docker-compose
Cobin Bluthd1c7f2162b53
diff --git a/.dockerignore b/.dockerignorenew file mode 100644index 000000000..12fe6241b--- /dev/null+++ b/.dockerignore@@ -0,0 +1,2 @@+.git+docker-compose.yml\ No newline at end of filediff --git a/Dockerfile b/Dockerfileindex a3e31e09f..4625124c5 100644--- a/Dockerfile+++ b/Dockerfile@@ -1,5 +1,7 @@FROM node:12.18-alpine+ENV DATABASE_URL "postgresql://umami:umami@db:5432/umami"+COPY . /appWORKDIR /appdiff --git a/docker-compose.yml b/docker-compose.ymlindex b09b81ebe..f9560dd93 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -1,25 +1,23 @@-version: '3.8'+---+version: '3'services:umami:build: .ports:- "3000:3000"environment:- DATABASE_URL: postgresql://umami:umami@postgres:5432/umami+ DATABASE_URL: postgresql://umami:umami@db:5432/umamiHASH_SALT: replace-me-with-a-random-string- postgres:+ depends_on:+ - db+ db:image: postgres:alpine- ports:- - "5432:5432"environment:+ POSTGRES_DB: umamiPOSTGRES_USER: umamiPOSTGRES_PASSWORD: umamivolumes:- - 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+ - ./sql/schema.postgresql.sql:/docker-entrypoint-initdb.d/schema.postgresql.sql:ro+ - umami-db-data:/var/lib/postgresql/datavolumes:- postgres-data:+ umami-db-data: