-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-run.yaml
65 lines (59 loc) · 1.15 KB
/
docker-compose-run.yaml
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
version: '3.9'
# Use this spec to run all of the code in separate services.
services:
# Instance used for dev application instance.
postgres:
image: postgres:16-alpine
shm_size: 4g
cpu_count: 4
user: root
volumes:
- ./.pgdata/database:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=momo
- PGDATA=/var/lib/postgresql/data/db-files/
expose:
- 5432
ports:
- "5432:5432"
networks:
- momo
api:
image: momo/api
build:
context: ./
dockerfile: ./Dockerfile.core
expose:
- 8080
ports:
- "8080:8080"
depends_on:
- postgres
networks:
- momo
svc1:
image: momo/svc1
build:
context: ./
dockerfile: ./Dockerfile.svc
environment:
- SVC_ROLE=WorkItemStatusMonitorService
depends_on:
- api
networks:
- momo
svc2:
image: momo/svc2
build:
context: ./
dockerfile: ./Dockerfile.svc
environment:
- SVC_ROLE=WorkItemMonitorService
depends_on:
- api
networks:
- momo
networks:
momo: