-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (51 loc) · 1.27 KB
/
docker-compose.yml
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
version: '3.8'
services:
user-app:
build:
context: .
dockerfile: ./docker/Dockerfile.userApp
image: user-app-image
ports:
- '3001:3000'
environment:
- CHOKIDAR_USEPOLLING=true
- DATABASE_URL=postgresql://postgres:secret@db:5432/postgres
- JWT_SECRET=secret
container_name: user-app-container
merchant-app:
build:
context: .
dockerfile: ./docker/Dockerfile.merchantApp
image: merchant-app-image
ports:
- '3002:3000'
environment:
- CHOKIDAR_USEPOLLING=true
- DATABASE_URL=postgresql://postgres:secret@db:5432/postgres
- JWT_SECRET=secret
container_name: merchant-app-container
bank-app:
build:
context: .
dockerfile: ./docker/Dockerfile.devBank
image: bank-app-image
ports:
- '3003:3000'
environment:
- CHOKIDAR_USEPOLLING=true
- DATABASE_URL=postgresql://postgres:secret@db:5432/postgres
- JWT_SECRET=secret
container_name: bank-app-container
db:
image: postgres
container_name: db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: secret
POSTGRES_DB: postgres
ports:
- '5431:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: