-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (47 loc) · 1.31 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
networks:
app:
driver: bridge
services:
##uncomment belowfor production build
# templateproxy:
# container_name: templateproxy
# image: nginx
# restart: always
# ports:
# - 443:443
# - 80:80
# volumes:
# - ./data/_.evl.uic.edu.key:/etc/ssl/evl.key
# - ./data/_.evl.uic.edu.crt:/etc/ssl/evl.crt
# - ./docker/proxy/https-forwarding.conf:/etc/nginx/conf.d/https-forwarding.conf
# networks:
# - app
templatefrontend:
container_name: templatefrontend
restart: unless-stopped
image: node:20
ports:
- 8000:8000
volumes:
- ./:/workspace/MLVis_Template
- ./docker/frontend/init-development.sh:/usr/local/bin/init-development.sh
- ./docker/frontend/init.sh:/usr/local/bin/init.sh
#switch when using the production server
entrypoint: sh -c "sh /usr/local/bin/init-development.sh"
# entrypoint: sh -c "sh /usr/local/bin/init.sh"
networks:
- app
templatebackend:
container_name: templatebackend
restart: unless-stopped
build:
context: ./docker/backend
dockerfile: Dockerfile
ports:
- 5000:5000
volumes:
- ./:/workspace/MLVis_Template
- ./docker/backend/init.sh:/usr/local/bin/init.sh
entrypoint: sh -c "sh /usr/local/bin/init.sh"
networks:
- app