-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (59 loc) · 1.39 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
version: "3.8"
services:
backend:
container_name: backend
build:
context: .
dockerfile: Dockerfile
image: jcayabyab/yw-nlp-backend
restart: always
volumes:
- ./keys:/opt/app/keys
- ./form_codes:/opt/app/form_codes
- ./model_output:/opt/app/model_output
environment:
- BACKEND_PORT=${BACKEND_PORT}
ports:
- "${BACKEND_PORT}:${BACKEND_PORT}"
expose:
- "${BACKEND_PORT}"
command: uvicorn app:app --reload --port ${BACKEND_PORT} --host 0.0.0.0
restart: always
nginx:
depends_on:
- backend
container_name: proxy-app
build:
context: client
dockerfile: Dockerfile
image: jcayabyab/yw-nlp-frontend
environment:
- NGINX_PORT=${NGINX_PORT}
- BACKEND_PORT=${BACKEND_PORT}
- DOLLAR=${DOLLAR}
ports:
- "${NGINX_PORT}:${NGINX_PORT}"
expose:
- "${NGINX_PORT}"
command: /bin/bash -c "envsubst < /etc/nginx/templates/form.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
db:
image: mongo:4.4.3
container_name: mongo
volumes:
- ./db/data:/data/db
ports:
- "27017:27017"
expose:
- "27017"
cms:
build:
context: cms
dockerfile: Dockerfile
image: jcayabyab/yw-nlp-cms
container_name: cms
volumes:
- ./cms/keys:/app/keys
ports:
- "3333:3333"
expose:
- "3333"