2019-05-30 12:49:29 +02:00
|
|
|
version: '3'
|
2019-04-12 09:04:31 +02:00
|
|
|
|
2019-05-30 12:49:29 +02:00
|
|
|
services:
|
|
|
|
kms:
|
|
|
|
image: golang:1.12
|
2019-06-06 13:06:31 +02:00
|
|
|
working_dir: /code/kms
|
2019-05-30 12:49:29 +02:00
|
|
|
volumes:
|
2019-06-06 13:06:31 +02:00
|
|
|
- .:/code
|
2019-05-30 12:49:29 +02:00
|
|
|
- $GOPATH/pkg/mod:/go/pkg/mod
|
|
|
|
environment:
|
|
|
|
- GOPATH=/go
|
2019-06-10 22:32:49 +02:00
|
|
|
- KEY_FILE=key.txt
|
2019-05-30 12:49:29 +02:00
|
|
|
ports:
|
|
|
|
- 8081:8081
|
2019-06-19 16:32:16 +02:00
|
|
|
command: go run cmd/kms/main.go -port 8081 -origin http://localhost:9977
|
2019-04-20 05:16:21 +02:00
|
|
|
|
2019-05-30 12:49:29 +02:00
|
|
|
server:
|
|
|
|
image: golang:1.12
|
2019-06-06 13:06:31 +02:00
|
|
|
working_dir: /code/server
|
2019-05-30 12:49:29 +02:00
|
|
|
volumes:
|
2019-06-06 13:06:31 +02:00
|
|
|
- .:/code
|
2019-05-30 12:49:29 +02:00
|
|
|
- $GOPATH/pkg/mod:/go/pkg/mod
|
|
|
|
environment:
|
|
|
|
- GOPATH=/go
|
|
|
|
- POSTGRES_CONNECTION_STRING=postgres://postgres:develop@database:5432/postgres?sslmode=disable
|
2019-05-31 16:04:21 +02:00
|
|
|
- KMS_ENCRYPTION_ENDPOINT=http://kms:8081/encrypt
|
2019-05-30 12:49:29 +02:00
|
|
|
ports:
|
|
|
|
- 8080:8080
|
2019-06-19 16:32:16 +02:00
|
|
|
command: go run cmd/server/main.go -origin http://localhost:9977 -conn postgres://postgres:develop@database:5432/postgres?sslmode=disable -level debug
|
2019-05-30 12:49:29 +02:00
|
|
|
links:
|
|
|
|
- database
|
|
|
|
depends_on:
|
|
|
|
- kms
|
2019-05-10 12:54:39 +02:00
|
|
|
|
2019-05-30 12:49:29 +02:00
|
|
|
database:
|
|
|
|
image: postgres:11.2
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=develop
|
2019-05-21 16:58:40 +02:00
|
|
|
|
2019-05-30 12:49:29 +02:00
|
|
|
vault:
|
|
|
|
image: timbru31/node-chrome:slim
|
|
|
|
working_dir: /offen/vault
|
|
|
|
volumes:
|
|
|
|
- .:/offen
|
|
|
|
command: npm start -- --port 9977
|
|
|
|
ports:
|
|
|
|
- 9977:9977
|
|
|
|
environment:
|
2019-06-19 16:32:16 +02:00
|
|
|
- SERVER_HOST=http://localhost:8080
|
|
|
|
- KMS_HOST=http://localhost:8081
|
|
|
|
- AUDITORIUM_HOST=http://localhost:9955
|
2019-05-30 12:49:29 +02:00
|
|
|
|
|
|
|
script:
|
|
|
|
image: timbru31/node-chrome:slim
|
|
|
|
working_dir: /offen/script
|
|
|
|
volumes:
|
|
|
|
- .:/offen
|
|
|
|
command: npm start -- --port 9966
|
|
|
|
ports:
|
|
|
|
- 9966:9966
|
|
|
|
environment:
|
2019-06-19 16:32:16 +02:00
|
|
|
- VAULT_HOST=http://localhost:9977
|
2019-05-30 12:49:29 +02:00
|
|
|
|
|
|
|
auditorium:
|
|
|
|
image: timbru31/node-chrome:slim
|
|
|
|
working_dir: /offen/auditorium
|
|
|
|
volumes:
|
|
|
|
- .:/offen
|
|
|
|
command: npm start -- --port 9955
|
|
|
|
ports:
|
|
|
|
- 9955:9955
|
|
|
|
environment:
|
2019-06-19 16:32:16 +02:00
|
|
|
- VAULT_HOST=http://localhost:9977
|