This repository has been archived by the owner on Sep 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.edtr-standalone.yml
100 lines (85 loc) · 1.96 KB
/
docker-compose.edtr-standalone.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: "3.2"
services:
### kong api gateway
kong-database:
restart: on-failure
image: cassandra:3
container_name: kong-database
ports:
- "9042:9042"
volumes:
- "data-kong-cassandra:/var/lib/cassandra"
kong:
restart: on-failure
image: kong
container_name: kong
depends_on:
- kong-database
- kong-migration
ports:
- "80:8000"
- "443:8443"
- "8001:8001"
- "7946:7946"
- "7946:7946/udp"
environment:
- KONG_DATABASE=cassandra
- KONG_ADMIN_LISTEN=0.0.0.0:8001, 0.0.0.0:8444 ssl
- KONG_CASSANDRA_CONTACT_POINTS=kong-database
- DB_UPDATE_PROPAGATION=5
kong-migration:
restart: on-failure
image: kong:latest
container_name: kong-migration
depends_on:
- kong-database
environment:
- KONG_DATABASE=cassandra
- KONG_CASSANDRA_CONTACT_POINTS=kong-database
- DB_UPDATE_PROPAGATION=5
command: kong migrations bootstrap
#### Editor
###
edtr:
build:
context: ../edtrio
dockerfile: Dockerfile.develop
container_name: edtr
volumes:
- ../edtrio:/home/node/app
environment:
- EDITOR_API_URL=http://api.edtr.l
- SERVER_API_URL=api.schul-cloud.l
- EDITOR_SOCKET_URL=ws://api.edtr.l
ports:
- 1234:1234
- 1235:1235
restart: unless-stopped
command: npm run dev
edtr-server:
build:
context: ../schulcloud-editor
dockerfile: Dockerfile.develop
container_name: edtr-server
depends_on:
- mongodb
volumes:
- ../schulcloud-editor:/usr/src/app
environment:
- DB_URL=mongodb://mongodb:27017/edtr
ports:
- 4001:4001
- 4002:4002
restart: unless-stopped
### database
mongodb:
image: mongo:${MONGO_DOCKER_TAG:-latest}
container_name: mongodb
ports:
- "27017:27017"
volumes:
- data-mongodb:/data/db
restart: unless-stopped
volumes:
data-mongodb:
data-kong-cassandra: