-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
40 lines (40 loc) · 964 Bytes
/
docker-compose.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
version: '2.1'
networks:
my-apps:
services:
gateway1:
image: adoptopenjdk:11.0.11_9-jre-openj9-0.26.0-focal
networks: [my-apps]
volumes:
- './gateway/target:/tmp/app'
command:
- java
- -jar
- /tmp/app/gateway-1.0.0-SNAPSHOT.jar
environment:
SPRING_PROFILES_ACTIVE: docker,gateway1
ports: ['7001:7001']
gateway2:
image: adoptopenjdk:11.0.11_9-jre-openj9-0.26.0-focal
networks: [my-apps]
volumes:
- './gateway/target:/tmp/app'
command:
- java
- -jar
- /tmp/app/gateway-1.0.0-SNAPSHOT.jar
environment:
SPRING_PROFILES_ACTIVE: docker,gateway2
ports: ['7002:7002']
gateway3:
image: adoptopenjdk:11.0.11_9-jre-openj9-0.26.0-focal
networks: [my-apps]
volumes:
- './gateway/target:/tmp/app'
command:
- java
- -jar
- /tmp/app/gateway-1.0.0-SNAPSHOT.jar
environment:
SPRING_PROFILES_ACTIVE: docker,gateway3
ports: ['7003:7003']