2
0
mirror of https://github.com/offen/website.git synced 2024-10-18 12:10:25 +02:00
website/docker-compose.yml

20 lines
419 B
YAML
Raw Normal View History

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
- POSTGRES_CONNECTION_STRING=postgres://postgres:develop@database:5432/postgres?sslmode=disable
2019-04-10 18:17:24 +02:00
ports:
- 8080:8080
command: go run cmd/server/main.go
links:
- database
database:
image: postgres:11.2
environment:
- POSTGRES_PASSWORD=develop