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

160 lines
5.2 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:
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
JWT_PUBLIC_KEY: http://accounts:5000/api/key
2019-05-30 12:49:29 +02:00
ports:
- 8081:8081
command: refresh run
links:
- accounts
2019-07-05 19:54:54 +02:00
server_database:
image: postgres:11.2
environment:
POSTGRES_PASSWORD: develop
2019-07-05 19:54:54 +02:00
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@server_database:5432/postgres?sslmode=disable
KMS_ENCRYPTION_ENDPOINT: http://kms:8081/encrypt
PORT: 8080
JWT_PUBLIC_KEY: http://accounts:5000/api/key
2019-05-30 12:49:29 +02:00
ports:
- 8080:8080
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:
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
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
- ACCOUNTS_HOST=http://localhost:5000
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-26 19:46:05 +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
- OPT_OUT_PIXEL_LOCATION=http://localhost:8080/opt-out
2019-07-12 10:43:55 +02:00
- OPT_IN_PIXEL_LOCATION=http://localhost:8080/opt-in
2019-07-05 19:54:54 +02:00
accounts:
build:
context: '.'
dockerfile: Dockerfile.python
working_dir: /offen/accounts
volumes:
- .:/offen
- accountdeps:/root/.local
command: flask run --host 0.0.0.0
ports:
- 5000:5000
environment:
FLASK_APP: accounts
FLASK_ENV: development
CORS_ORIGIN: http://localhost:9977
# local password is `develop`
HASHED_PASSWORD: JDJhJDEwJGpFRXJMOVVSQndZQlFQNjkxallkZi53aGp1cDMvRW5maGUvakZleG1pWFlnWEVXcU93ODBp
JWT_PRIVATE_KEY: |-
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCa6AEl0RUW43YS
6cfbYkEDoSxQV8WoEQPuwM9OPdrJjTHYwX9+J9dPhvdnuSIGca86jgYwg45xG5MC
7arOIIGOI8rBuXWyPF/iZliWxUmzEMIsmZYFNTjezRl95ymy43ZH9JCS2pw2g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yei5aCBW0HXQBSHlcgzIxmrDLiRrZqE3QKBgBPu
KUUkY0EkTfIYa2LtqbUeKH5ZqQkFoCYpWcC3IQBVZqBCz0xeTumOxc5/9F7Ea9n+
x8IJB11cmmJq+mqJNbpvegH3qKMnkP0kYcMdznm5EPybtMh9lxCKcWNnmvH7a+MC
sMHqCnvTsa8wOJUSWj+8yp5Xl2L3+wQ20VGYgR2NAoGAE8/BCLHcescaA9PGr4Kx
EfVfoULTXOJp8a8j+N3C8cXhnroXGT6IYnETb34Z2J713m/5Ko/74PBWXnRvvnu4
ATPZbyXlmtsorV5E5lRs9x6U9bRUzDEWLp1yITfaDHflYUWkrtAKDZ6GslCMbvQz
9/CbsOaHzDf73JYos55E78E=
-----END PRIVATE KEY-----
JWT_PUBLIC_KEY: |-
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmugBJdEVFuN2EunH22JB
A6EsUFfFqBED7sDPTj3ayY0x2MF/fifXT4b3Z7kiBnGvOo4GMIOOcRuTAu2qziCB
jiPKwbl1sjxf4mZYlsVJsxDCLJmWBTU43s0ZfecpsuN2R/SQktqcNoE06meJZ/4T
5JdijLPk8KO4rsedrIBUQMVmDzYKgqZG8xAC/swhyD2marGY0V/5xEu/8iWVsr0k
g0PwrHXkfsbLMdhdSV40B5evHQRCSXO4QFOMTarPWj+b2mi+j28Fjoeku284ng72
p5MmUqwsVQWzMvPiR1wyy0E6fC798t/By/xM9IHn5tpEZxjU1NfZMKBU/nHnrmBO
kQIDAQAB
-----END PUBLIC KEY-----
2019-07-05 19:54:54 +02:00
volumes:
kmsdeps:
serverdeps:
scriptdeps:
2019-06-21 13:25:32 +02:00
auditoriumdeps:
vaultdeps:
2019-07-05 19:54:54 +02:00
accountdeps: