-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
37 lines (35 loc) · 1017 Bytes
/
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
version: '3'
services:
pseudo_api:
container_name: pseudo_api
restart: always
build: https://github.com/etalab-ia/pseudo_api.git#flair-ner-french:pseudo_api
ports:
- "8011:8000"
volumes:
- ${PSEUDO_MODEL_PATH}:/usr/src/pseudo_api/model/best-model.pt
- ${PSEUDO_API_DB_PATH}:/usr/src/pseudo_api/api_stats.sqlite
command: gunicorn -w 2 --timeout 90 -b 0.0.0.0:8000 wsgi:server
pseudo_app:
container_name: pseudo_app
restart: always
build: ./pseudo_app
ports:
- "8010:8050"
volumes:
- ${PSEUDO_MODEL_PATH}:/usr/src/pseudo_app/model/best-model.pt
environment:
- PSEUDO_REST_API_URL=${PSEUDO_REST_API_URL}
- PSEUDO_MODEL_PATH=/usr/src/pseudo_app/model/best-model.pt
command: gunicorn -w 1 --timeout 90 -b 0.0.0.0:8050 app:server
depends_on:
- pseudo_api
nginx:
container_name: nginx
restart: always
build: ./nginx
ports:
- "80:80"
depends_on:
- pseudo_api
- pseudo_app