mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-29 07:16:25 +01:00
fix docker-compose
This commit is contained in:
parent
30c84dd54a
commit
d1c7f2162b
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.git
|
||||||
|
docker-compose.yml
|
@ -1,5 +1,7 @@
|
|||||||
FROM node:12.18-alpine
|
FROM node:12.18-alpine
|
||||||
|
|
||||||
|
ENV DATABASE_URL "postgresql://umami:umami@db:5432/umami"
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
@ -1,25 +1,23 @@
|
|||||||
version: '3.8'
|
---
|
||||||
|
version: '3'
|
||||||
services:
|
services:
|
||||||
umami:
|
umami:
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgresql://umami:umami@postgres:5432/umami
|
DATABASE_URL: postgresql://umami:umami@db:5432/umami
|
||||||
HASH_SALT: replace-me-with-a-random-string
|
HASH_SALT: replace-me-with-a-random-string
|
||||||
postgres:
|
depends_on:
|
||||||
|
- db
|
||||||
|
db:
|
||||||
image: postgres:alpine
|
image: postgres:alpine
|
||||||
ports:
|
|
||||||
- "5432:5432"
|
|
||||||
environment:
|
environment:
|
||||||
|
POSTGRES_DB: umami
|
||||||
POSTGRES_USER: umami
|
POSTGRES_USER: umami
|
||||||
POSTGRES_PASSWORD: umami
|
POSTGRES_PASSWORD: umami
|
||||||
volumes:
|
volumes:
|
||||||
- type: bind
|
- ./sql/schema.postgresql.sql:/docker-entrypoint-initdb.d/schema.postgresql.sql:ro
|
||||||
source: ./sql/schema.postgresql.sql
|
- umami-db-data:/var/lib/postgresql/data
|
||||||
target: /docker-entrypoint-initdb.d/schema.postgresql.sql
|
|
||||||
- type: volume
|
|
||||||
source: postgres-data
|
|
||||||
target: /var/lib/postgresql/data
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres-data:
|
umami-db-data:
|
||||||
|
Loading…
Reference in New Issue
Block a user