2
0
mirror of https://github.com/offen/website.git synced 2024-11-25 10:10:28 +01:00
website/docker-compose.yml

20 lines
492 B
YAML

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
ports:
- 8080:8080
command: go run cmd/server/main.go -conn postgres://postgres:develop@database:5432/postgres?sslmode=disable
links:
- database
database:
image: postgres:11.2
environment:
- POSTGRES_PASSWORD=develop