Skip to content

Commit f6455b1

Browse files
fix(docker): explicitly define app_network for redis and app services
1 parent b59739d commit f6455b1

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ services:
1212

1313
depends_on:
1414
- redis
15+
networks:
16+
- app_network
1517
deploy:
1618
restart_policy:
1719
condition: any
@@ -31,6 +33,8 @@ services:
3133
command: tunnel run
3234
environment:
3335
- TUNNEL_TOKEN=${TUNNEL_TOKEN}
36+
networks:
37+
- app_network
3438
deploy:
3539
restart_policy:
3640
condition: any
@@ -39,11 +43,17 @@ services:
3943
image: redis:7-alpine
4044
ports:
4145
- "127.0.0.1:6379:6379"
46+
networks:
47+
- app_network
4248
deploy:
4349
restart_policy:
4450
condition: any
4551
volumes:
4652
- redis_data:/data
4753

54+
networks:
55+
app_network:
56+
driver: overlay
57+
4858
volumes:
4959
redis_data:

0 commit comments

Comments
 (0)