-
-
Notifications
You must be signed in to change notification settings - Fork 229
/
Copy pathdocker-compose.dbtests.yml
34 lines (32 loc) · 1.01 KB
/
docker-compose.dbtests.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
services:
# Stock mysql database. Root password is hardcoded for now
db:
image: mysql:8
command: --log-bin-trust-function-creators=ON
restart: always
volumes:
- mysql_data_testing:/var/lib/mysql
ports:
# Exposing via the port specified for Grapher
- "${GRAPHER_TEST_DB_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: weeniest-stretch-contaminate-gnarl
MYSQL_ROOT_HOST: "%"
# mysql:8 container for running the DB creation scripts
db-load-data:
image: mysql:8
command: "/app/create-test-db.sh"
volumes:
- ./devTools/docker:/app
- ./db/migration:/migration
- ./tmp-downloads:/tmp-downloads
environment:
DB_ROOT_PASS: weeniest-stretch-contaminate-gnarl
DB_ROOT_HOST: db
DATA_FOLDER: "/tmp-downloads"
env_file:
- .env
depends_on:
- db
volumes:
mysql_data_testing: