-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (76 loc) · 1.77 KB
/
docker-compose.yml
File metadata and controls
77 lines (76 loc) · 1.77 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
version: '3.8'
services:
reverseProxy:
container_name: gradeview-reverse-proxy
image: ${CI_REGISTRY_IMAGE:-gradeview}/reverse-proxy:${REVERSE_PROXY_VERSION:-development}
build: ./reverseProxy
volumes:
- ${SOCKETS_DIR:-/dev/null}:/run/sockets
- /etc/letsencrypt:/etc/letsencrypt:ro
- /var/www/certbot:/var/www/certbot:ro
networks:
- frontend
ports:
- 80:80
- 443:443
depends_on:
- web
- api
web:
container_name: gradeview-web
image: ${CI_REGISTRY_IMAGE:-gradeview}/web:${WEB_VERSION:-development}
build:
context: ./website
dockerfile: ./server/Dockerfile
env_file:
- .env
environment:
- REACT_APP_PROXY_SERVER=${REACT_APP_PROXY_SERVER}
- PORT=${REACT_APP_PORT}
networks:
- frontend
command: npm start
restart: unless-stopped
api:
container_name: gradeview-api
image: ${CI_REGISTRY_IMAGE:-gradeview}/server:${API_VERSION:-development}
build: ./api
env_file:
- .env
volumes:
- ./api:/api
- /api/node_modules
environment:
- PORT=${API_PORT}
- NODE_ENV=production
networks:
- frontend
- db
command: npm start
restart: unless-stopped
redis:
image: redis:latest
networks:
- db
command: redis-server --requirepass ${REDIS_DB_SECRET:-password}
ports:
- 6379:6379
gradesync:
container_name: gradeview-gradesync
build: ./gradesync
env_file:
- .env
environment:
- DATABASE_URL=${GRADESYNC_DATABASE_URL}
networks:
- frontend
- db
ports:
- "8001:8000"
command: uvicorn api.app:app --host 0.0.0.0 --port 8000 --workers 2
restart: unless-stopped
networks:
frontend:
name: frontend
db:
name: db