Skip to content

Commit

Permalink
[feature/#313] docker network IP 수정
Browse files Browse the repository at this point in the history
[feature/#313] docker network IP 수정
  • Loading branch information
whitem4rk authored Jun 19, 2024
2 parents 01bf03f + d3e4a6f commit cd56df1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
30 changes: 26 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
version: '3'
services:
config:
image: whtmdgus56/ibas-config:config
container_name: backend-cloud-config
networks:
ibas-network:
- ipv4_address: 172.18.0.4
ports:
- "8888:8888"
entrypoint: [ "java", "-jar", "app.jar" ]

prod1:
image: whtmdgus56/ibas-config:prod
container_name: backend-prod1
networks:
- ibas-network
ibas-network:
- ipv4_address: 172.18.0.2
ports:
- "8080:8080"
environment:
Expand All @@ -15,7 +26,8 @@ services:
image: whtmdgus56/ibas-config:prod
container_name: backend-prod2
networks:
- ibas-network
ibas-network:
- ipv4_address: 172.18.0.2
ports:
- "8081:8081"
environment:
Expand All @@ -26,7 +38,8 @@ services:
image: whtmdgus56/ibas-config:dev
container_name: backend-dev1
networks:
- ibas-network
ibas-network:
- ipv4_address: 172.18.0.3
ports:
- "8082:8082"
environment:
Expand All @@ -37,9 +50,18 @@ services:
image: whtmdgus56/ibas-config:dev
container_name: backend-dev2
networks:
- ibas-network
ibas-network:
- ipv4_address: 172.18.0.3
ports:
- "8083:8083"
environment:
- SPRING_PROFILES_ACTIVE=dev2
entrypoint: ["java", "-jar", "app.jar", "--spring.profiles.active=dev2"]


networks:
ibas-network:
driver: bridge
ipam:
config:
- subnet: 172.18.0.0/16
2 changes: 1 addition & 1 deletion resource-server/src/main/resources/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spring:
on-profile: dev1, dev2, prod1, prod2
cloud:
config:
uri: http://localhost:8888
uri: http://172.18.0.4:8888

---
spring:
Expand Down

0 comments on commit cd56df1

Please sign in to comment.