Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (66 loc) · 1.78 KB
/
Copy pathdocker-compose.yml
File metadata and controls
69 lines (66 loc) · 1.78 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Development stack: source folders are bind-mounted and run in watch mode.
# For production use docker-compose.prod.yml.
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
target: dev
args:
- UID=${UID:-1000}
- GID=${GID:-1000}
volumes:
- ./backend/:/home/node/app
# Locally built widget (npm run build:wc in frontend/consent-lib),
# served at http://localhost:3000/widget/widget.js
- ./frontend/consent-lib/packages/apicuron-consent-wc:/widget:ro
ports:
- "3000:3000"
env_file:
- .env
environment:
- WIDGET_DIR=/widget
restart: on-failure:3
depends_on:
kurrentdb:
condition: service_healthy
dashboard:
build:
context: ./frontend/dashboard
dockerfile: Dockerfile
target: dev
args:
- UID=${UID:-1000}
- GID=${GID:-1000}
volumes:
- ./frontend/dashboard/:/home/node/app
ports:
- "${DASHBOARD_PORT:-4200}:4200"
env_file:
- .env
kurrentdb:
image: kurrentplatform/kurrentdb:25.0.1-x64-8.0-bookworm-slim
environment:
- KURRENTDB_CLUSTER_SIZE=1
- KURRENTDB_RUN_PROJECTIONS=All
- KURRENTDB_START_STANDARD_PROJECTIONS=true
- KURRENTDB_NODE_PORT=2113
- KURRENTDB_INSECURE=true
- KURRENTDB_ENABLE_ATOM_PUB_OVER_HTTP=true
ports:
- "2113:2113"
volumes:
- type: volume
source: kurrentdb-volume-data
target: /var/lib/kurrentdb
- type: volume
source: kurrentdb-volume-logs
target: /var/log/kurrentdb
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://localhost:2113/health/live || exit 1"]
interval: 5s
timeout: 5s
retries: 24
volumes:
kurrentdb-volume-data:
kurrentdb-volume-logs: