Skip to content

Commit 568e6f1

Browse files
authored
fix: 운영환경 8081 포트 설정 추가 (#542)
* fix: 운영환경 8081 포트 설정 추가 * refactor: dev환경 브릿지 네트워크로 변경
1 parent c4ce218 commit 568e6f1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docker-compose.dev.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,16 @@ services:
66
container_name: redis
77
ports:
88
- "6379:6379"
9-
network_mode: host
109

1110
redis-exporter:
1211
image: oliver006/redis_exporter
1312
container_name: redis-exporter
1413
ports:
1514
- "9121:9121"
1615
environment:
17-
REDIS_ADDR: "localhost:6379"
16+
REDIS_ADDR: "redis:6379"
1817
depends_on:
1918
- redis
20-
network_mode: host
2119

2220
solid-connection-dev:
2321
build:
@@ -26,13 +24,15 @@ services:
2624
container_name: solid-connection-dev
2725
ports:
2826
- "8080:8080"
27+
- "8081:8081"
2928
environment:
3029
- SPRING_PROFILES_ACTIVE=dev
30+
- SPRING_DATA_REDIS_HOST=redis
31+
- SPRING_DATA_REDIS_PORT=6379
3132
volumes:
3233
- ./logs:/var/log/spring
3334
depends_on:
3435
- redis
35-
network_mode: host
3636

3737
alloy:
3838
image: grafana/alloy:latest

docker-compose.prod.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ services:
2424
container_name: solid-connection-server
2525
ports:
2626
- "8080:8080"
27+
- "8081:8081"
2728
environment:
2829
- SPRING_PROFILES_ACTIVE=prod
2930
- SPRING_DATA_REDIS_HOST=redis

0 commit comments

Comments
 (0)