-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.prod.yml
48 lines (45 loc) · 1.22 KB
/
docker-compose.prod.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.3'
services:
api:
image: gujadoesdocker/filemanager-fastapi
build:
context: ./api
args:
- INSTALL_FFMPEG=${INSTALL_FFMPEG}
volumes:
- './api/app:/app'
command: /start.sh
ports:
- 9000:9000
expose:
- 9000
### Certbot #########################################
certbot:
image: phusion/baseimage:bionic-1.0.0
build:
context: ./certbot
volumes:
- ./data/certbot/certs/:/var/certs
- ./certbot/letsencrypt/:/var/www/letsencrypt
environment:
- CN=${DOMAINS}
- EMAIL=${SSL_DOMAIN_OWNER}
### NGINX Server #########################################
nginx:
image: nginx:alpine
build:
context: ./nginx
args:
- PYTHON_UPSTREAM_CONTAINER=${NGINX_PYTHON_UPSTREAM_CONTAINER}
- PYTHON_UPSTREAM_PORT=${NGINX_PYTHON_UPSTREAM_PORT}
volumes:
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
- ${NGINX_HOST_LOG_PATH}:/var/log/nginx
- ${NGINX_SITES_PATH}:/etc/nginx/sites-available
- ./data/certbot/certs/:/var/certs
- ./certbot/letsencrypt/:/var/www/letsencrypt
ports:
- "${NGINX_HOST_HTTP_PORT}:80"
- "${NGINX_HOST_HTTPS_PORT}:443"
depends_on:
- api