-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 1.01 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
version: "3.7"
services:
main:
image: sjohnson2019/main:${BUILD_NUMBER}
build: ./Main
ports:
- target: 5000
published: 5000
protocol: tcp
environment:
PROD_DB_URI: ${PROD_DB_URI}
PROD_SKEY: ${PROD_SKEY}
deploy:
replicas: 2
api_1:
image: sjohnson2019/api_1:${BUILD_NUMBER}
build: ./API1
ports:
- target: 5001
published: 5001
protocol: tcp
deploy:
replicas: 2
api_2:
image: sjohnson2019/api_2:${BUILD_NUMBER}
build: ./API2
ports:
- target: 5002
published: 5002
protocol: tcp
deploy:
replicas: 2
api_3:
image: sjohnson2019/api_3:${BUILD_NUMBER}
build: ./API3
ports:
- target: 5003
published: 5003
protocol: tcp
deploy:
replicas: 2