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:
|
2019-06-20 12:57:36 +02:00
|
|
|
build:
|
|
|
|
context: '.'
|
|
|
|
dockerfile: Dockerfile.golang
|
|
|
|
working_dir: /offen/kms
|
2019-05-30 12:49:29 +02:00
|
|
|
volumes:
|
2019-06-20 12:57:36 +02:00
|
|
|
- .:/offen
|
|
|
|
- kmsdeps:/go/pkg/mod
|
2019-05-30 12:49:29 +02:00
|
|
|
environment:
|
2019-07-07 13:21:20 +02:00
|
|
|
KEY_FILE: key.txt
|
|
|
|
PORT: 8081
|
|
|
|
JWT_PUBLIC_KEY: http://accounts:5000/api/key
|
2019-05-30 12:49:29 +02:00
|
|
|
ports:
|
|
|
|
- 8081:8081
|
2019-06-20 12:57:36 +02:00
|
|
|
command: refresh run
|
2019-07-07 13:21:20 +02:00
|
|
|
links:
|
|
|
|
- accounts
|
2019-04-20 05:16:21 +02:00
|
|
|
|
2019-07-05 19:54:54 +02:00
|
|
|
server_database:
|
|
|
|
image: postgres:11.2
|
|
|
|
environment:
|
2019-07-07 13:21:20 +02:00
|
|
|
POSTGRES_PASSWORD: develop
|
2019-07-05 19:54:54 +02:00
|
|
|
|
2019-07-10 17:17:50 +02:00
|
|
|
accounts_database:
|
2019-07-14 22:32:07 +02:00
|
|
|
image: mysql:5.7
|
|
|
|
ports:
|
|
|
|
- "3306:3306"
|
2019-07-10 17:17:50 +02:00
|
|
|
environment:
|
2019-07-14 22:32:07 +02:00
|
|
|
MYSQL_DATABASE: mysql
|
|
|
|
MYSQL_ROOT_PASSWORD: develop
|
2019-07-10 17:17:50 +02:00
|
|
|
|
2019-05-30 12:49:29 +02:00
|
|
|
server:
|
2019-06-20 12:57:36 +02:00
|
|
|
build:
|
|
|
|
context: '.'
|
|
|
|
dockerfile: Dockerfile.golang
|
|
|
|
working_dir: /offen/server
|
2019-05-30 12:49:29 +02:00
|
|
|
volumes:
|
2019-06-20 12:57:36 +02:00
|
|
|
- .:/offen
|
2019-07-10 17:17:50 +02:00
|
|
|
- ./bootstrap.yml:/offen/server/bootstrap.yml
|
2019-06-20 12:57:36 +02:00
|
|
|
- serverdeps:/go/pkg/mod
|
2019-05-30 12:49:29 +02:00
|
|
|
environment:
|
2019-07-07 13:21:20 +02:00
|
|
|
POSTGRES_CONNECTION_STRING: postgres://postgres:develop@server_database:5432/postgres?sslmode=disable
|
|
|
|
KMS_ENCRYPTION_ENDPOINT: http://kms:8081/encrypt
|
|
|
|
PORT: 8080
|
|
|
|
JWT_PUBLIC_KEY: http://accounts:5000/api/key
|
2019-07-21 10:37:09 +02:00
|
|
|
DEVELOPMENT: '1'
|
2019-07-30 12:21:33 +02:00
|
|
|
COOKIE_EXCHANGE_SECRET: Wsttdo4Z3mXV5sTc
|
2019-05-30 12:49:29 +02:00
|
|
|
ports:
|
|
|
|
- 8080:8080
|
2019-06-20 12:57:36 +02:00
|
|
|
command: refresh run
|
2019-05-30 12:49:29 +02:00
|
|
|
links:
|
2019-07-05 19:54:54 +02:00
|
|
|
- server_database
|
2019-05-30 12:49:29 +02:00
|
|
|
depends_on:
|
|
|
|
- kms
|
2019-05-10 12:54:39 +02:00
|
|
|
|
2019-05-30 12:49:29 +02:00
|
|
|
vault:
|
2019-06-20 12:57:36 +02:00
|
|
|
build:
|
|
|
|
context: '.'
|
|
|
|
dockerfile: Dockerfile.node
|
2019-05-30 12:49:29 +02:00
|
|
|
working_dir: /offen/vault
|
|
|
|
volumes:
|
|
|
|
- .:/offen
|
2019-06-20 12:57:36 +02:00
|
|
|
- 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
|
2019-06-24 22:26:50 +02:00
|
|
|
- SCRIPT_HOST=http://localhost:9977
|
2019-06-19 16:32:16 +02:00
|
|
|
- AUDITORIUM_HOST=http://localhost:9955
|
2019-07-07 13:21:20 +02:00
|
|
|
- ACCOUNTS_HOST=http://localhost:5000
|
2019-08-01 11:01:19 +02:00
|
|
|
- HOMEPAGE_HOST=http://localhost:8000
|
2019-05-30 12:49:29 +02:00
|
|
|
|
|
|
|
script:
|
2019-06-20 12:57:36 +02:00
|
|
|
build:
|
|
|
|
context: '.'
|
|
|
|
dockerfile: Dockerfile.node
|
2019-05-30 12:49:29 +02:00
|
|
|
working_dir: /offen/script
|
|
|
|
volumes:
|
|
|
|
- .:/offen
|
2019-06-20 12:57:36 +02:00
|
|
|
- scriptdeps:/offen/script/node_modules
|
2019-05-30 12:49:29 +02:00
|
|
|
command: npm start -- --port 9966
|
|
|
|
ports:
|
|
|
|
- 9966:9966
|
|
|
|
environment:
|
2019-06-26 19:46:05 +02:00
|
|
|
- VAULT_HOST=http://localhost:9977
|
2019-05-30 12:49:29 +02:00
|
|
|
|
|
|
|
auditorium:
|
2019-06-20 12:57:36 +02:00
|
|
|
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
|
2019-06-20 12:57:36 +02:00
|
|
|
|
2019-07-05 19:54:54 +02:00
|
|
|
accounts:
|
|
|
|
build:
|
|
|
|
context: '.'
|
|
|
|
dockerfile: Dockerfile.python
|
|
|
|
working_dir: /offen/accounts
|
|
|
|
volumes:
|
|
|
|
- .:/offen
|
2019-07-10 17:17:50 +02:00
|
|
|
- ./bootstrap.yml:/offen/accounts/bootstrap.yml
|
2019-07-05 19:54:54 +02:00
|
|
|
- accountdeps:/root/.local
|
|
|
|
command: flask run --host 0.0.0.0
|
|
|
|
ports:
|
|
|
|
- 5000:5000
|
2019-07-10 17:17:50 +02:00
|
|
|
links:
|
|
|
|
- accounts_database
|
2019-07-05 19:54:54 +02:00
|
|
|
environment:
|
2019-07-20 16:27:56 +02:00
|
|
|
CONFIG_CLASS: accounts.config.LocalConfig
|
2019-07-10 17:17:50 +02:00
|
|
|
FLASK_APP: accounts:app
|
2019-07-07 13:21:20 +02:00
|
|
|
FLASK_ENV: development
|
2019-07-14 22:32:07 +02:00
|
|
|
MYSQL_CONNECTION_STRING: mysql+pymysql://root:develop@accounts_database:3306/mysql
|
2019-07-07 13:21:20 +02:00
|
|
|
CORS_ORIGIN: http://localhost:9977
|
2019-07-10 17:17:50 +02:00
|
|
|
SERVER_HOST: http://server:8080
|
|
|
|
SESSION_SECRET: vndJRFJTiyjfgtTF
|
2019-07-05 19:54:54 +02:00
|
|
|
|
2019-06-20 12:57:36 +02:00
|
|
|
volumes:
|
|
|
|
kmsdeps:
|
|
|
|
serverdeps:
|
|
|
|
scriptdeps:
|
2019-06-21 13:25:32 +02:00
|
|
|
auditoriumdeps:
|
2019-06-20 12:57:36 +02:00
|
|
|
vaultdeps:
|
2019-07-05 19:54:54 +02:00
|
|
|
accountdeps:
|