-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (47 loc) · 1.39 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: '3.7'
services:
sulmun2yong-test-db:
image: mysql:8.0.35
container_name: sulmun2yong-test-db
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
expose:
- "3306"
ports:
- "3306:3306"
volumes:
- sulmun2yong-test-db:/var/lib/mysql
sulmun2yong-test-mongodb:
image: mongo:latest
container_name: sulmun2yong-test-mongodb
restart: always
environment:
MONGO_INITDB_DATABASE: ${MONGO_INITDB_DATABASE}
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
expose:
- "27017"
ports:
- "27017:27017"
volumes:
- sulmun2yong-test-mongodb:/data/db
sulmun2yong-test-redis:
image: redis:latest
container_name: sulmun2yong-test-redis
restart: always
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD}
expose:
- "6379"
ports:
- "6379:6379"
volumes:
- sulmun2yong-test-redis:/data
volumes:
sulmun2yong-test-db:
sulmun2yong-test-mongodb:
sulmun2yong-test-redis: