-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 1.04 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
services:
app-blue:
build:
context: .
dockerfile: Dockerfile
image: andylee259/assu-app:latest
container_name: app-blue
ports:
- "8080:8080"
environment:
- SPRING_PROFILES_ACTIVE=blue
- SPRING_CONFIG_ADDITIONAL_LOCATION=file:/app/config/
volumes:
- /home/ubuntu/secret/application-secret.yml:/app/config/application-secret.yml:ro
- /home/ubuntu/secret/service-account.json:/app/config/service-account.json:ro
networks:
- assu-network
app-green:
build:
context: .
dockerfile: Dockerfile
image: andylee259/assu-app:latest
container_name: app-green
ports:
- "8081:8080"
environment:
- SPRING_PROFILES_ACTIVE=green
- SPRING_CONFIG_ADDITIONAL_LOCATION=file:/app/config/
volumes:
- /home/ubuntu/secret/application-secret.yml:/app/config/application-secret.yml:ro
- /home/ubuntu/secret/service-account.json:/app/config/service-account.json:ro
networks:
- assu-network
networks:
assu-network:
external: true