migrate/docker-compose.yml

30 lines
557 B
YAML
Raw Normal View History

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