-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
129 lines (127 loc) · 3.26 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
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
version: '3.8'
services:
redis:
container_name: sce-redis
image: redis:latest
restart: always
volumes:
- sce_redis_data:/data/redis
mongodb:
container_name: sce-mongodb
restart: always
image: 'mongo'
volumes:
- '/data/db:/data/db'
command: 'mongod'
keep-ssh-tunnel-open:
container_name: keep-ssh-tunnel-open
build:
context: ./tunnel
dockerfile: ./Dockerfile
extra_hosts:
- "host.docker.internal:host-gateway"
sce-cloud-api:
container_name: sce-cloud-api
build:
context: ./api
dockerfile: ./cloud_api/Dockerfile
environment:
- GENERAL_API_URL=http://sce-main-endpoints:8080/api
- VERIFICATION_BASE_URL=https://sce.sjsu.edu
- DATABASE_HOST=sce-mongodb
- NODE_ENV=production
restart: 'on-failure'
stdin_open: true
links:
- mongodb
depends_on:
- mongodb
main-endpoints:
container_name: sce-main-endpoints
build:
context: ./api
dockerfile: ./main_endpoints/Dockerfile
environment:
- CLEEZY_URL=http://cleezy-app.sce:8000
- PRINTER_URL=http://host.docker.internal:14000
- LED_SIGN_URL=http://host.docker.internal:11000
- SPEAKER_URL=http://host.docker.internal:18000
- DISCORD_REDIRECT_URI=https://sce.sjsu.edu/api/user/callback
- MAILER_API_URL=http://sce-cloud-api:8082/cloudapi
- DATABASE_HOST=sce-mongodb
- REDIS_HOST_URL=redis://sce-redis:6379
- NODE_ENV=production
volumes:
- ./api/main_endpoints/routes/printing:/app/main_endpoints/routes/printing:rw
restart: 'on-failure'
stdin_open: true
links:
- mongodb
depends_on:
- mongodb
extra_hosts:
- "host.docker.internal:host-gateway"
frontend:
container_name: sce-frontend
build:
context: .
dockerfile: ./docker/Dockerfile
restart: 'on-failure'
stdin_open: true
links:
- mongodb
depends_on:
- mongodb
environment:
- NODE_ENV=production
prometheus:
image: prom/prometheus:latest
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./prometheus:/etc/prometheus
ports:
- '127.0.0.1:9090:9090'
command:
- '--config.file=/etc/prometheus/prometheus.yml'
cadvisor:
image: gcr.io/cadvisor/cadvisor:latest
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker:/var/lib/docker:ro
- /var/run/docker.sock:/var/run/docker.sock:rw
devices:
- /dev/kmsg:/dev/kmsg
clark-node-exporter:
image: quay.io/prometheus/node-exporter:latest
command:
- '--path.rootfs=/host'
pid: host
restart: unless-stopped
volumes:
- '/:/host:ro,rslave'
nginx:
image: 'nginx'
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./sce_sjsu_edu_cert.cer:/etc/nginx/sce_sjsu_edu_cert.cer
- ./sce.key:/etc/nginx/sce.key
command: [nginx-debug, '-g', 'daemon off;']
ports:
- '80:80'
- '443:443'
restart: 'on-failure'
depends_on:
- frontend
networks:
default:
external:
name: sce
volumes:
sce_redis_data: