forked from YACS-RCOS/yacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.development.yml
134 lines (118 loc) · 2.41 KB
/
docker-compose.development.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
version: '3.2'
# Yacs primary services
# Overrides for development
services:
# Application services
core:
build: ./core
environment:
- COURSE_TOPIC_NAME=course_change
- SECTION_TOPIC_NAME=section_change
- RAILS_ENV=development
- SECRET_KEY_BASE=6ae504547712ae4faf35b9d6186322cf
- SECRET_TOKEN=cc621dab5bb79f81057a7d17c8ceea42
- WEB_CONCURRENCY=1
- MAX_THREADS=2
ports:
- "4100:4100"
volumes:
- ./core:/usr/src/app
tty: true
stdin_open: true
core-consumer:
build: ./core
environment:
- RAILS_ENV=development
- TERM_SHORTNAME=201909
- UNI_SHORTNAME
volumes:
- ./core:/usr/src/app
tty: true
stdin_open: true
web:
build: ./web
ports:
- "4200:4200"
volumes:
- "./web/src:/usr/src/app/src"
command: "ng build --watch"
malg:
build: ./malg
ports:
- "4500:4500"
volumes:
- "./malg:/usr/src/app"
environment:
- TERM_SHORTNAME=201909
- UNI_SHORTNAME
# Dependency services
postgres:
ports:
- "5432:5432"
redis:
ports:
- "6379:6379"
nginx:
build: ./nginx
ports:
- "80:80"
- "443:443"
links:
- core
zookeeper:
ports:
- "2181:2181"
kafka:
ports:
- "9094:9094"
- "9092:9092"
# Future/abandoned services
# admin:
# build: ./admin
# ports:
# - "4300:4300"
# notices:
# build: ./notice-service
# ports:
# - "4900:4900"
# volumes:
# - ./notice-service:/usr/src/app
# kafka-manager:
# image: sheepkiller/kafka-manager:latest
# ports:
# - "9000:9000"
# links:
# - zookeeper
# - kafka
# environment:
# ZK_HOSTS: zookeeper:2181
# KM_ARGS: -Djava.net.preferIPv4Stack=true
# planner-web:
# build: ./prereq-web
# depends_on:
# - planner-data
# ports:
# - "4700:4200"
# volumes:
# - ./prereq-web/src:/usr/src/app/src
# command: "ng serve --host 0.0.0.0 --disable-host-check"
# planner-data:
# build: ./prereq-data
# ports:
# - "4600:3100"
# expose:
# - "3100"
# notifications:
# build: ./notifications
# ports:
# - "3000:3000"
# volumes:
# - ./notifications:/usr/src/app
users:
build: ./users
ports:
- "4400:4400"
volumes:
- "./users:/usr/src/app"
tty: true
stdin_open: true