forked from globocom/database-as-a-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (60 loc) · 1.48 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '2.1'
services:
mysqldb55:
image: mysql:5.5
container_name: mysql55
environment:
- MYSQL_ROOT_PASSWORD=123
- MYSQL_USER=rute
- MYSQL_PASSWORD=123
- MYSQL_DATABASE=dbaas
ports:
- "3307:3306"
mysqldb56:
image: mysql:5.6
container_name: mysql56
environment:
- MYSQL_ROOT_PASSWORD=123
- MYSQL_USER=rute
- MYSQL_PASSWORD=123
- MYSQL_DATABASE=dbaas
ports:
- "3307:3306"
mysqldb57:
image: mysql:5.7
container_name: mysql57
environment:
- MYSQL_ROOT_PASSWORD=123
- MYSQL_USER=rute
- MYSQL_PASSWORD=123
- MYSQL_DATABASE=dbaas
ports:
- "3307:3306"
mongodb:
image: mongo:3.4
container_name: mongo34
mongodb42:
image: mongo:4.2
container_name: mongo42
ports:
- "27018:27017"
redisdb:
image: redis:3.2
container_name: redis32
test:
image: dbaas_test
volumes:
- .:/code
depends_on:
- mysqldb56
- mongodb
- redisdb
links:
- mysqldb56
- mongodb
- redisdb
environment:
- REDIS_HOST=redisdb
- DBAAS_DATABASE_HOST=mysqldb56
- DBAAS_DATABASE_PASSWORD=123
- TESTS_MONGODB_HOST=mongodb