-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (72 loc) · 1.84 KB
/
docker-compose.yml
File metadata and controls
77 lines (72 loc) · 1.84 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
70
71
72
73
74
75
76
77
services:
warchest-dev-container:
container_name: warchest-dev-container
image: ghcr.io/devsoc-unsw/warchest-devcontainer
stdin_open: true
tty: true
ports:
# expose ports (3000 computer <-> 3000 on the container)
- "3000:3000"
volumes:
- ./:/root/warchest
environment:
- NODE_ENV=development
- BE_DATABASE_URL=postgres://postgres:password@postgres-be:5432/warchest
- MM_DATABASE_URL=postgres://postgres:password@postgres-mm:5432/money_module
- TIGERBEETLE_ADDRESS=tigerbeetle:3000
networks:
- warchest-network
depends_on:
postgres-be:
condition: service_healthy
postgres-mm:
condition: service_healthy
tigerbeetle:
condition: service_started
postgres-be:
image: postgres:16-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: warchest
networks:
- warchest-network
volumes:
- postgres_be_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
postgres-mm:
image: postgres:16-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: money_module
networks:
- warchest-network
volumes:
- postgres_mm_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
tigerbeetle:
build:
context: ./money-module/tigerbeetle
dockerfile: Dockerfile
networks:
- warchest-network
volumes:
- tigerbeetle_data:/data
security_opt:
- seccomp:unconfined
volumes:
postgres_be_data:
postgres_mm_data:
tigerbeetle_data:
networks:
warchest-network:
driver: bridge