Skip to content

Commit

Permalink
chore: docker-compse 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
clean2001 committed Oct 30, 2024
1 parent 464580d commit e0fbb41
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 21 deletions.
18 changes: 8 additions & 10 deletions layer-api/infra/production/docker-compose-blue.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
blue:
layer-api-blue:
image: docker.io/clean01/layer-server_layer-api:latest
container_name: blue
container_name: layer-api-blue
ports:
- "8080:8080"
environment:
Expand All @@ -14,9 +14,9 @@ services:
networks:
- app-network

batch-job:
batch-job-blue:
image: docker.io/clean01/layer-server_layer-batch:latest
container_name: layer-batch_blue
container_name: layer-batch-blue
environment:
- TZ=Asia/Seoul
volumes:
Expand All @@ -26,16 +26,14 @@ services:
networks:
- app-network
depends_on:
- blue
- green
- layer-api-blue
restart: always

nginx:
nginx-blue:
image: nginx:latest
container_name: nginx
container_name: nginx-blue
depends_on:
- blue
- green
- layer-api-blue
ports:
- "80:80"
volumes:
Expand Down
20 changes: 9 additions & 11 deletions layer-api/infra/production/docker-compose-green.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
services:
blue:
layer-api-green:
image: docker.io/clean01/layer-server_layer-api:latest
container_name: blue
container_name: layer-api-green
ports:
- "8080:8080"
- "8081:8080"
environment:
- TZ=Asia/Seoul
- SPRING_PROFILES_ACTIVE=prod
Expand All @@ -14,9 +14,9 @@ services:
networks:
- app-network

batch-job:
batch-job-green:
image: docker.io/clean01/layer-server_layer-batch:latest
container_name: layer-batch_blue
container_name: layer-batch-green
environment:
- TZ=Asia/Seoul
volumes:
Expand All @@ -26,16 +26,14 @@ services:
networks:
- app-network
depends_on:
- blue
- green
- layer-api-green
restart: always

nginx:
nginx-green:
image: nginx:latest
container_name: nginx
container_name: nginx-green
depends_on:
- blue
- green
- layer-api-green
ports:
- "80:80"
volumes:
Expand Down

0 comments on commit e0fbb41

Please sign in to comment.