2019-04-10 18:17:24 +02:00
|
|
|
server:
|
|
|
|
image: golang:1.12
|
|
|
|
working_dir: /server
|
|
|
|
volumes:
|
|
|
|
- ./server:/server
|
|
|
|
- $GOPATH/pkg/mod:/go/pkg/mod
|
|
|
|
environment:
|
|
|
|
- GOPATH=/go
|
2019-04-20 01:37:26 +02:00
|
|
|
- POSTGRES_CONNECTION_STRING=postgres://postgres:develop@database:5432/postgres?sslmode=disable
|
2019-04-10 18:17:24 +02:00
|
|
|
ports:
|
|
|
|
- 8080:8080
|
2019-04-19 18:37:19 +02:00
|
|
|
command: go run cmd/server/main.go -conn postgres://postgres:develop@database:5432/postgres?sslmode=disable
|
2019-04-12 09:04:31 +02:00
|
|
|
links:
|
|
|
|
- database
|
|
|
|
|
|
|
|
database:
|
|
|
|
image: postgres:11.2
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=develop
|