forked from doug-martin/goqu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 1.14 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
version: "2"
services:
postgres:
image: postgres:9.6
environment:
- "POSTGRES_USER=postgres"
- "POSTGRES_DB=goqupostgres"
expose:
- "5432"
mysql:
image: mysql:5
environment:
- "MYSQL_DATABASE=goqumysql"
- "MYSQL_ALLOW_EMPTY_PASSWORD=yes"
expose:
- "3306"
goqu:
image: "golang:${GO_VERSION}"
command: bash -c "sleep 30 && go test -v -race ./..."
working_dir: /go/src/gopkg.in/doug-martin/goqu.v5
volumes:
- "./:/go/src/gopkg.in/doug-martin/goqu.v5"
environment:
MYSQL_URI: 'root@tcp(mysql:3306)/goqumysql?parseTime=true'
PG_URI: 'postgres://postgres:@postgres:5432/goqupostgres?sslmode=disable'
depends_on:
- postgres
- mysql
goqu-coverage:
image: "golang:${GO_VERSION}"
command: bash -c "sleep 30 && ./go.test.sh"
working_dir: /go/src/gopkg.in/doug-martin/goqu.v5
volumes:
- "./:/go/src/gopkg.in/doug-martin/goqu.v5"
environment:
MYSQL_URI: 'root@tcp(mysql:3306)/goqumysql?parseTime=true'
PG_URI: 'postgres://postgres:@postgres:5432/goqupostgres?sslmode=disable'
depends_on:
- postgres
- mysql