-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (77 loc) · 1.78 KB
/
docker-compose.yml
File metadata and controls
78 lines (77 loc) · 1.78 KB
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
version: '3.3'
services:
redis_container:
image: redis:alpine
ports:
- 6379:6379
command: redis-server --save 20 1 --loglevel warning
mysql_container:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=12345678
- MYSQL_DATABASE=squoolr_api_db
command: mysqld --sql_mode=""
api:
build:
dockerfile: ./Dockerfile.api
context: .
restart: always
environment:
- REDIS_HOST=redis_container
- REDIS_PORT=redis_container
- DATABASE_URL=mysql://root:12345678@mysql_container:3306/squoolr_api_db
- SALT=12
- SECURE_PHRASE_LENGTH=5
- SESSION_SECRET=squoolr-session-secret
- SESSION_NAME=SQUOOLR_SESSION_ID
- APP_PORT=8080
- MAX_AGE=600
- GOOGLE_CLIENT_ID=752561817920-8esi5105gks06dugi9l14h7dg23vdnff.apps.googleusercontent.com
- GOOGLE_SECRET=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
- EMAIL_HOST=smtp.gmail.com
- EMAIL_USER=glomexam@gmail.com
- EMAIL_PASSWORD=..........
- ADMIN_URL=admin.squoolr.com
- NODE_ENV=production
- CRYPTJS_SECRET=I_hate_trash
ports:
- "94:8080"
depends_on:
- mysql_container
- redis_container
landing:
build:
dockerfile: ./Dockerfile.landing
context: .
restart: always
ports:
- "91:3000"
depends_on:
- api
admin:
build:
dockerfile: ./Dockerfile.admin
context: .
restart: always
ports:
- "85:3000"
depends_on:
- api
personnel:
build:
dockerfile: ./Dockerfile.personnel
context: .
restart: always
ports:
- "86:3000"
depends_on:
- api
student:
build:
dockerfile: ./Dockerfile.student
context: .
restart: always
ports:
- "87:3000"
depends_on:
- api