2
0
mirror of https://github.com/offen/website.git synced 2024-10-18 20:20:24 +02:00
website/docker-compose.yml

94 lines
1.9 KiB
YAML
Raw Normal View History

2019-05-30 12:49:29 +02:00
version: '3'
2019-05-30 12:49:29 +02:00
services:
database:
image: postgres:11.2
environment:
- POSTGRES_PASSWORD=develop
2019-05-30 12:49:29 +02:00
kms:
build:
context: '.'
dockerfile: Dockerfile.golang
working_dir: /offen/kms
2019-05-30 12:49:29 +02:00
volumes:
- .:/offen
- kmsdeps:/go/pkg/mod
2019-05-30 12:49:29 +02:00
environment:
- KEY_FILE=key.txt
- PORT=8081
2019-05-30 12:49:29 +02:00
ports:
- 8081:8081
command: refresh run
2019-05-30 12:49:29 +02:00
server:
build:
context: '.'
dockerfile: Dockerfile.golang
working_dir: /offen/server
2019-05-30 12:49:29 +02:00
volumes:
- .:/offen
- serverdeps:/go/pkg/mod
2019-05-30 12:49:29 +02:00
environment:
- 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
- PORT=8080
2019-05-30 12:49:29 +02:00
ports:
- 8080:8080
command: refresh run
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
vault:
build:
context: '.'
dockerfile: Dockerfile.node
2019-05-30 12:49:29 +02:00
working_dir: /offen/vault
volumes:
- .:/offen
- vaultdeps:/offen/vault/node_modules
2019-05-30 12:49:29 +02:00
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:
build:
context: '.'
dockerfile: Dockerfile.node
2019-05-30 12:49:29 +02:00
working_dir: /offen/script
volumes:
- .:/offen
- scriptdeps:/offen/script/node_modules
2019-05-30 12:49:29 +02:00
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:
build:
context: '.'
dockerfile: Dockerfile.node
2019-05-30 12:49:29 +02:00
working_dir: /offen/auditorium
volumes:
- .:/offen
2019-06-21 13:25:32 +02:00
- auditoriumdeps:/offen/auditorium/node_modules
2019-05-30 12:49:29 +02:00
command: npm start -- --port 9955
ports:
- 9955:9955
environment:
2019-06-19 16:32:16 +02:00
- VAULT_HOST=http://localhost:9977
volumes:
kmsdeps:
serverdeps:
scriptdeps:
2019-06-21 13:25:32 +02:00
auditoriumdeps:
vaultdeps: