File tree Expand file tree Collapse file tree 2 files changed +23
-9
lines changed
Expand file tree Collapse file tree 2 files changed +23
-9
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,17 @@ services:
77 dockerfile : Dockerfile
88 ports :
99 - " ${APP_PORT:-3000}:3000"
10+ env_file :
11+ - ../.env
1012 environment :
11- - DATABASE_HOST= mysql
12- - DATABASE_PORT= 3306
13- - DATABASE_NAME= yoodb
14- - DATABASE_USER= yooadmin
15- - DATABASE_PASSWORD= yoopass
16- - KAFKA_BROKERS= kafka:29092
17- - REDIS_HOST= yoo-redis
18- - REDIS_PORT= 6379
13+ DB_HOST : mysql
14+ DB_PORT : 3306
15+ DB_DATABASE_NAME : yoodb
16+ DB_USER : yooadmin
17+ DB_PASSWORD : yoopass
18+ KAFKA_BROKER : kafka:29092
19+ REDIS_HOST : yoo-redis
20+ REDIS_PORT : 6379
1921 depends_on :
2022 - mysql
2123 - kafka
@@ -101,7 +103,19 @@ services:
101103 retries : 5
102104 timeout : 5s
103105
106+ redisinsight :
107+ image : redis/redisinsight:latest
108+ container_name : redisinsight
109+ ports :
110+ - " 8001:5540"
111+ depends_on :
112+ redis :
113+ condition : service_healthy
114+ volumes :
115+ - redisinsight_data:/data
116+
104117volumes :
105118 mysql_data :
106119 redis_data :
107120 kafka_data :
121+ redisinsight_data :
Original file line number Diff line number Diff line change 33set -euo pipefail
44
55# remove existing containers with conflicting names, ignoring failures
6- for container in yoo-redis yoo-mysql kafka redpanda-console yoo-stack-app-1 app; do
6+ for container in yoo-redis yoo-mysql kafka redpanda-console redisinsight yoo-stack-app-1 app; do
77 docker rm -f " $container " > /dev/null 2>&1 || true
88done
99
You can’t perform that action at this time.
0 commit comments