File tree Expand file tree Collapse file tree 2 files changed +67
-0
lines changed
Expand file tree Collapse file tree 2 files changed +67
-0
lines changed Original file line number Diff line number Diff line change 1+ # Redis
2+ REDIS_PASSWORD = your_redis_password
3+
4+ # MongoDB
5+ MONGO_USERNAME = your_mongo_username
6+ MONGO_PASSWORD = your_mongo_password
7+
8+ # MySQL
9+ MYSQL_ROOT_PASSWORD = your_mysql_root_password
10+ MYSQL_DATABASE = your_database_name
11+ MYSQL_USER = your_mysql_username
12+ MYSQL_PASSWORD = your_mysql_password
Original file line number Diff line number Diff line change 1+ version : ' 3.8'
2+
3+ services :
4+ redis :
5+ image : redis:latest
6+ container_name : redis
7+ command : redis-server --requirepass ${REDIS_PASSWORD}
8+ ports :
9+ - " 6379:6379"
10+ volumes :
11+ - redis_data:/data
12+ networks :
13+ - database_network
14+ restart : unless-stopped
15+ environment :
16+ - REDIS_PASSWORD=${REDIS_PASSWORD}
17+
18+ mongodb :
19+ image : mongo:latest
20+ container_name : mongodb
21+ ports :
22+ - " 27017:27017"
23+ volumes :
24+ - mongodb_data:/data/db
25+ networks :
26+ - database_network
27+ restart : unless-stopped
28+ environment :
29+ - MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME}
30+ - MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
31+
32+ mysql :
33+ image : mysql:8
34+ container_name : mysql
35+ ports :
36+ - " 3306:3306"
37+ volumes :
38+ - mysql_data:/var/lib/mysql
39+ networks :
40+ - database_network
41+ restart : unless-stopped
42+ environment :
43+ - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
44+ - MYSQL_DATABASE=${MYSQL_DATABASE}
45+ - MYSQL_USER=${MYSQL_USER}
46+ - MYSQL_PASSWORD=${MYSQL_PASSWORD}
47+
48+ networks :
49+ database_network :
50+ driver : bridge
51+
52+ volumes :
53+ redis_data :
54+ mongodb_data :
55+ mysql_data:
You can’t perform that action at this time.
0 commit comments