-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yaml
40 lines (40 loc) · 939 Bytes
/
docker-compose.yaml
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
version: '3.0'
services:
mongo:
image: mongo
ports:
- 27000:27017
environment:
# - MONGO_INITDB_ROOT_USERNAME="dart_orm_test"
# - MONGO_INITDB_ROOT_PASSWORD="dart_orm_test"
- MONGO_INITDB_DATABASE="dart_orm_test"
postgres:
image: postgres
ports:
- 5000:5432
environment:
- POSTGRES_PASSWORD=dart_orm_test
- POSTGRES_USER=dart_orm_test
- POSTGRES_DB=dart_orm_test
mysql:
image: mysql:5.7
ports:
- 3000:3306
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=true
- MYSQL_DATABASE=dart_orm_test
- MYSQL_USER=dart_orm_test
- MYSQL_PASSWORD=dart_orm_test
test:
image: google/dart:dev
command: bash -c "pub get && pub run test"
working_dir: /project
volumes:
- .:/project
- ~/.pub-cache:/root/.pub-cache
depends_on:
- mongo
- postgres
- mysql
environment:
- USE_DOCKER=true