forked from training-center/hades
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.test.yml
32 lines (32 loc) · 1017 Bytes
/
docker-compose.test.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
version: "2"
services:
test:
build: .
command: ./wait-for test
volumes:
- .:/app/
- /app/node_modules
ports:
- 3001:3000
depends_on:
- mysql-test
networks:
- test-net
environment:
DATABASE_URL: mysql://hades:hades@mysql-test/hadesdb
DB_USERNAME: hades
DB_PASSWORD: hades
DB_NAME: hadesdb
DB_HOSTNAME: mysql-test
mysql-test:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: hadespwd
MYSQL_DATABASE: hadesdb
MYSQL_USER: hades
MYSQL_PASSWORD: hades
networks:
- test-net
networks:
test-net:
driver: bridge