forked from sqlectron/sqlectron-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (40 loc) · 879 Bytes
/
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
mysql:
image: mysql:5.7
ports:
- 3306
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: sqlectron
volumes:
- ./spec/databases/mysql/schema:/docker-entrypoint-initdb.d
postgres:
image: postgres:9.4.5
ports:
- 5432
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: sqlectron
volumes:
- ./spec/databases/postgresql/schema:/docker-entrypoint-initdb.d
cassandra:
image: cassandra:3.7
environment:
JVM_OPTS: -Xms128m -Xmx512m
ports:
- 7000 # cluster
- 9042 # native
test:
image: node:10.15.0
command: npm test
working_dir: /usr/src/app
environment:
DB_CLIENTS: mysql,postgresql,cassandra
MYSQL_ENV_MYSQL_USER: root
MYSQL_ENV_MYSQL_PASSWORD: password
volumes:
- .:/usr/src/app
links:
- mysql:mysql
- postgres:postgres
- cassandra:cassandra