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
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