migrate/docker-compose.yml
2015-10-15 13:48:04 -04:00

28 lines
483 B
YAML

go: &go
image: golang
working_dir: /go/src/github.com/mattes/migrate
volumes:
- $GOPATH:/go
- ./migrations:/migrations
go-test:
<<: *go
command: go test -v ./...
links:
- postgres
- mysql
- cassandra
go-build:
<<: *go
command: go build -ldflags '-s'
environment:
CGO_ENABLED: 0
postgres:
image: postgres
mysql:
image: mysql
environment:
MYSQL_DATABASE: migratetest
MYSQL_ALLOW_EMPTY_PASSWORD: yes
cassandra:
image: cassandra