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

33 lines
925 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
2019-04-26 04:08:17 +02:00
- ./local.offen.org.pem:/server/local.offen.org.pem
- ./local.offen.org-key.pem:/server/local.offen.org-key.pem
2019-04-10 18:17:24 +02:00
- $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-26 04:08:17 +02:00
command: go run cmd/server/main.go -conn postgres://postgres:develop@database:5432/postgres?sslmode=disable -key local.offen.org-key.pem -cert local.offen.org.pem
links:
- database
database:
image: postgres:11.2
environment:
- POSTGRES_PASSWORD=develop
vault:
2019-04-20 17:06:06 +02:00
image: node:10
working_dir: /vault
volumes:
- ./vault:/vault
2019-04-26 04:08:17 +02:00
- ./local.offen.org.pem:/vault/local.offen.org.pem
- ./local.offen.org-key.pem:/vault/local.offen.org-key.pem
2019-04-20 17:06:06 +02:00
command: npm start -- --port 9977
ports:
2019-04-20 17:06:06 +02:00
- 9977:9977