-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaires_full.docker-compose.yml
49 lines (47 loc) · 1.24 KB
/
aires_full.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
version: '3'
services:
# ngnix for port forwarding
nginx:
container_name: nginx-aires_api
image: nginx:1.21.0
restart: unless-stopped
# For ENV in docker, see https://hub.docker.com/_/nginx
env_file:
- .env
ports:
- "${NGINX_HOST_PORT}:8443"
volumes:
# Template conf
- ${NGINX_ROOT}/templates:/etc/nginx/templates/
# SSL
- ${NGINX_ROOT}/ssl.conf:/config/nginx/ssl.conf:ro
# Certificates
- ${NGINX_CERT}:/etc/nginx/certs:ro
# FLASK
aires_flask_app:
image: aires_flask_app_image
container_name: aires_flask_app
restart: always
env_file:
- .env
build:
context: ${FLASK_ROOT_DIR}
dockerfile: ${FLASK_ROOT_DIR}/flask.Dockerfile
ports:
- "${FLASK_PORT}:${FLASK_PORT}"
volumes:
- ${PATH_TO_AIRES_MODELS}:${WORKDIR_PATH}/AIRES_MODELS/
# FASTAPI
aires_fastapi_app:
image: aires_fastapi_app_image
container_name: aires_fastapi_app
restart: always
env_file:
- .env
build:
context: ${FASTAPI_ROOT_DIR}
dockerfile: ${FASTAPI_ROOT_DIR}/fastapi.Dockerfile
ports:
- "${FASTAPI_PORT}:${FASTAPI_PORT}"
volumes:
- ${PATH_TO_AIRES_MODELS}:${FASTAPI_WORKDIR_PATH}/AIRES_MODELS/