2
0
mirror of https://github.com/offen/website.git synced 2024-11-22 17:10:29 +01:00

clean up responsibilities in query methods, make sql backend configurable

This commit is contained in:
Frederik Ring 2019-04-19 18:37:19 +02:00
parent 8b580b787f
commit 01589e3055

View File

@ -6,10 +6,9 @@ server:
- $GOPATH/pkg/mod:/go/pkg/mod - $GOPATH/pkg/mod:/go/pkg/mod
environment: environment:
- GOPATH=/go - GOPATH=/go
- POSTGRES_CONNECTION_STRING=postgres://postgres:develop@database:5432/postgres?sslmode=disable
ports: ports:
- 8080:8080 - 8080:8080
command: go run cmd/server/main.go command: go run cmd/server/main.go -conn postgres://postgres:develop@database:5432/postgres?sslmode=disable
links: links:
- database - database