docker-compose.yaml
995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# vibe_erp — local development compose stack.
#
# Brings up a Postgres + the vibe_erp image built from the local
# Dockerfile. Mirrors the architecture spec section 10 install story
# (one DB, one image, one mounted volume).
services:
db:
image: postgres:16-alpine
environment:
POSTGRES_DB: vibeerp
POSTGRES_USER: vibeerp
POSTGRES_PASSWORD: vibeerp
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U vibeerp"]
interval: 5s
timeout: 5s
retries: 10
app:
build:
context: .
dockerfile: Dockerfile
depends_on:
db:
condition: service_healthy
environment:
VIBEERP_DB_URL: jdbc:postgresql://db:5432/vibeerp
VIBEERP_DB_USER: vibeerp
VIBEERP_DB_PASSWORD: vibeerp
VIBEERP_INSTANCE_MODE: self-hosted
ports:
- "8080:8080"
volumes:
- ./local-vibeerp:/opt/vibe-erp
volumes:
pgdata: