-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
82 lines (77 loc) · 2.61 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: '3'
services:
h-api-editor:
build:
context: .
dockerfile: cmd/api-editor/Dockerfile
ports:
- 4242:4242
restart: always
links:
- postgres:postgres
- cassandra:cassandra
environment:
- HEROESBOOK_EDITOR_SSL_ENABLE=false
- HEROESBOOK_EDITOR_SSL_CERT=resources/cert.pem
- HEROESBOOK_EDITOR_SSL_KEY=resources/key.pem
- HEROESBOOK_EDITOR_PORT=4242
- HEROESBOOK_EDITOR_AUTH_ENABLE=true
- HEROESBOOK_EDITOR_AUTH_JWT_KEY=--key-jwt--
- HEROESBOOK_EDITOR_AUTH_POSTGRES_USER=postgres
- HEROESBOOK_EDITOR_AUTH_POSTGRES_PASSWORD=pass_example
- HEROESBOOK_EDITOR_AUTH_POSTGRES_DB_NAME=heroes
- HEROESBOOK_EDITOR_AUTH_POSTGRES_SSL=disable
- HEROESBOOK_EDITOR_AUTH_POSTGRES_HOST=postgres
- HEROESBOOK_EDITOR_AUTH_POSTGRES_PORT=5432
- HEROESBOOK_EDITOR_AUTH_CASSANDRA_HOSTS=cassandra
- HEROESBOOK_EDITOR_AUTH_CASSANDRA_KEYSPACE=heroesbook
- HEROESBOOK_EDITOR_AUTH_CASSANDRA_PORT=9042
- HEROESBOOK_EDITOR_APP_POSTGRES_USER=postgres
- HEROESBOOK_EDITOR_APP_POSTGRES_PASSWORD=pass_example
- HEROESBOOK_EDITOR_APP_POSTGRES_DB_NAME=heroes
- HEROESBOOK_EDITOR_APP_POSTGRES_SSL=disable
- HEROESBOOK_EDITOR_APP_POSTGRES_HOST=postgres
- HEROESBOOK_EDITOR_APP_POSTGRES_PORT=5432
h-view-editor:
build:
context: view/editor
dockerfile: Dockerfile
args:
- API_HOST_ARG=http://127.0.0.1
- API_PORT_ARG=4242
ports:
- 8080:8080
links:
- h-api-editor:h-api-editor
dev-view-editor:
build:
context: .
dockerfile: view/editor/dev.dockerfile
volumes:
- "./view/editor/:/app/"
environment:
- NODE_ENV=development
- API_HOST=http://127.0.0.1
- API_PORT=4242
stdin_open: true
tty: true
ports:
- 8080:8080
postgres:
image: postgres:12.0
restart: always
environment:
- POSTGRES_DB=heroes
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=pass_example
volumes:
- "./resources/psql/:/docker-entrypoint-initdb.d/"
ports:
- 5432:5432
cassandra:
build:
context: resources/cassandra
dockerfile: Dockerfile
restart: always
ports:
- 9042:9042