mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
CCP-403: build from local code
This commit is contained in:
parent
a19b92a5cb
commit
6b50d518ff
1 changed files with 10 additions and 3 deletions
|
|
@ -1,7 +1,12 @@
|
|||
---
|
||||
services:
|
||||
umami:
|
||||
image: ghcr.io/umami-software/umami:latest
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
DATABASE_URL: postgresql://umami:umami@db:5432/umami
|
||||
DATABASE_TYPE: postgresql
|
||||
BASE_PATH: ""
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
|
|
@ -13,10 +18,11 @@ services:
|
|||
init: true
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl http://localhost:3000/api/heartbeat"]
|
||||
test: ["CMD-SHELL", "curl -fsS http://localhost:3000/api/heartbeat >/dev/null || exit 1"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
db:
|
||||
image: postgres:15-alpine
|
||||
environment:
|
||||
|
|
@ -31,5 +37,6 @@ services:
|
|||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
umami-db-data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue