-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (52 loc) · 1.46 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
services:
frontend:
container_name: frontend
build:
context: ./frontend
target: production
command: s3 cp --recursive /aws s3://${FRONTEND_S3_BUCKET_NAME}/
environment:
- NODE_ENV="production"
- AWS_ACCESS_KEY_ID=${FRONTEND_AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${FRONTEND_AWS_SECRET_ACCESS_KEY}
- AWS_DEFAULT_REGION=${FRONTEND_AWS_DEFAULT_REGION}
backend:
container_name: backend
build:
context: ./backend
target: production
command:
[
"gunicorn",
"-k",
"uvicorn.workers.UvicornWorker",
"-c",
"./gunicorn_conf.py",
"app.main:app",
]
environment:
- POETRY_VERSION=1.1.11
- BACKEND_PROJECT_TITLE=ArchitectureID.ai
- BACKEND_CORS_ORIGINS='["*"]'
- BACKEND_ALLOWED_HOSTS='["*"]'
- BACKEND_MODELS_SERVER_URL=https://models.architectureid.ai
links:
- models
volumes:
- ./backend:/srv/backend
models:
container_name: models
image: tensorflow/serving:2.6.2
command:
- --model_config_file=/config/models.prod.config
- --model_config_file_poll_wait_seconds=300
- --rest_api_timeout_in_ms=30000
ports:
- 8501:8501
environment:
- AWS_ACCESS_KEY_ID=${MODELS_AWS_ACCESS_KEY_ID}
- AWS_REGION=${MODELS_AWS_REGION}
- AWS_SECRET_ACCESS_KEY=${MODELS_AWS_SECRET_ACCESS_KEY}
- S3_ENDPOINT=${MODELS_S3_ENDPOINT}
volumes:
- ./config:/config