migrate/docker-compose.yml

30 lines
557 B
YAML
Raw Normal View History

2015-10-15 12:49:43 -04:00
go: &go
image: golang
working_dir: /go/src/github.com/mattes/migrate
volumes:
- $GOPATH:/go
go-test:
<<: *go
2015-10-15 14:18:23 -04:00
command: sh -c 'go get -t -v ./... && go test -v ./...'
2015-10-15 12:49:43 -04:00
links:
- postgres
- mysql
- cassandra
2016-06-16 11:48:39 +02:00
- crate
2015-10-15 12:49:43 -04:00
go-build:
<<: *go
2015-10-15 14:18:23 -04:00
command: sh -c 'go get -v && go build -ldflags ''-s'' -o migrater'
2015-10-15 12:49:43 -04:00
environment:
CGO_ENABLED: 1
2015-10-15 12:49:43 -04:00
postgres:
image: postgres
mysql:
image: mysql
environment:
MYSQL_DATABASE: migratetest
2016-06-16 11:48:39 +02:00
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
2015-10-15 12:49:43 -04:00
cassandra:
2016-01-10 21:39:37 -06:00
image: cassandra:2.2
2016-06-16 11:48:39 +02:00
crate:
image: crate