This repository has been archived by the owner on Dec 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.dev.yml
144 lines (142 loc) · 4.71 KB
/
docker-compose.dev.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
135
136
137
138
139
140
141
142
143
144
version: "3"
services:
eduroom_frontend:
build:
context: ./eduroom_frontend
dockerfile: Dockerfile.dev
depends_on:
- eduroom_backend
volumes:
- ./eduroom_frontend:/usr/src/app
- /usr/src/app/node_modules
- ./eduroom_frontend/.next:/usr/src/app/.next
environment:
- NEXT_PUBLIC_ENTRYPOINT_URL=http://localhost
- NEXT_PUBLIC_BACKEND_API=http://localhost:5000
- NEXT_PUBLIC_GRADER_URL=http://34.87.165.200:30000
- NEXT_PUBLIC_CHAT_SERVER=http://localhost:5050
- NEXT_PUBLIC_KAHOOT_URL=http://localhost:8000
ports:
- "3000:3000"
nginx:
restart: always
depends_on:
- eduroom_frontend
- eduroom_backend
- eduroom_socket_chat
- eduroom_socket_kahoot
build:
dockerfile: Dockerfile.dev
context: ./nginx
ports:
- "80:80"
eduroom_backend:
build:
dockerfile: Dockerfile.dev
context: ./eduroom_backend
volumes:
- /usr/src/app/node_modules
- ./eduroom_backend/src:/usr/src/app/src
- ./eduroom_backend/package-lock.json:/usr/src/app/package-lock.json
- ./eduroom_backend/package.json:/usr/src/app/package.json
environment:
- NODE_ENV=development
- PORT=5000
- ENTRYPOINT_URL=http://localhost
- CLIENT_URL=http://localhost:3000
- BACKEND_API=http://localhost:5000
- GRADER_URL=http://34.87.165.200:30000
- DB_USER=eduroom_user
- DB_PASSWORD=dADKHgj86jQoRoff7xwC4TZ
- DB_HOST=35.198.234.48
- DB_PORT=5432
- DB_NAME=eduroom_db
- JWT_SECRET=jwtsecret
- JWT_EXPIRE=30d
- JWT_COOKIE_EXPIRE=30
- GOOGLE_CLIENT_ID=915718814816-au5njmbt31b0g4lctg8edqm3rs53vvcn.apps.googleusercontent.com
- GOOGLE_SECRET_KEY=dDwssvp5-CCfvXs7vhlNhxIi
- SMTP_SECURE=false
- SMTP_HOST=eduroom_smtp
- SMTP_PORT=1025
- SMTP_EMAIL=
- SMTP_PASSWORD=
- FROM_EMAIL=no-reply@eduroom.cscms.me
- FROM_NAME=Eduroom
- NODE_TLS_REJECT_UNAUTHORIZED=0
- GCS_SA_KEY_PATH=gcs-eduroom.json
- GCS_BUCKET_NAME=eduroom-dev
- GCS_PROJECT_ID=eduroom
ports:
- "5000:5000"
# eduroom_grading_server:
# image: judge0/judge0:latest
# volumes:
# - ./eduroom_grading_server/judge0.conf:/judge0.conf:ro
# privileged: true
# restart: always
# depends_on:
# - eduroom_grading_worker
# - eduroom_grading_db
# - eduroom_grading_redis
# ports:
# - "3050:3000"
# eduroom_grading_worker:
# image: judge0/judge0:latest
# command: ["./scripts/workers"]
# volumes:
# - ./eduroom_grading_server/judge0.conf:/judge0.conf:ro
# privileged: true
# restart: always
# eduroom_grading_db:
# image: postgres:13.0
# env_file: ./eduroom_grading_server/judge0.conf
# volumes:
# - postgres-data:/var/lib/postgresql/data/
# restart: always
# eduroom_grading_redis:
# image: redis:6.0
# command: [
# "bash", "-c",
# 'docker-entrypoint.sh --appendonly yes --requirepass "$$REDIS_PASSWORD"'
# ]
# env_file: ./eduroom_grading_server/judge0.conf
# volumes:
# - redis-data:/data
# restart: always
eduroom_socket_chat:
build:
dockerfile: Dockerfile.dev
context: ./eduroom_socket_chat
volumes:
- /usr/src/app/node_modules
- ./eduroom_socket_chat:/usr/src/app
environment:
- NODE_ENV=development
- PORT=5050
- ENTRYPOINT_URL=http://localhost
- CLIENT_URL=http://localhost:3000
ports:
- "5050:5050"
eduroom_socket_kahoot:
build:
dockerfile: Dockerfile.dev
context: ./eduroom_socket_kahoot
volumes:
- /usr/src/app/node_modules
- ./eduroom_socket_kahoot:/usr/src/app
environment:
- NODE_ENV=development
- PORT=8000
- ENTRYPOINT_URL=http://localhost
- CLIENT_URL=http://localhost:3000
ports:
- "8000:8000"
eduroom_smtp:
image: reachfive/fake-smtp-server
ports:
- "1025:1025"
- "1080:1080"
# volumes:
# postgres-data:
# redis-data: