CCP-403: build from local code

This commit is contained in:
Alexander Tong 2025-12-02 19:58:57 -08:00
parent a19b92a5cb
commit 6b50d518ff

View file

@ -1,7 +1,12 @@
---
services: services:
umami: 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: ports:
- "3000:3000" - "3000:3000"
environment: environment:
@ -13,10 +18,11 @@ services:
init: true init: true
restart: always restart: always
healthcheck: 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 interval: 5s
timeout: 5s timeout: 5s
retries: 5 retries: 5
db: db:
image: postgres:15-alpine image: postgres:15-alpine
environment: environment:
@ -31,5 +37,6 @@ services:
interval: 5s interval: 5s
timeout: 5s timeout: 5s
retries: 5 retries: 5
volumes: volumes:
umami-db-data: umami-db-data: