-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (51 loc) · 1.3 KB
/
docker-compose.yml
File metadata and controls
52 lines (51 loc) · 1.3 KB
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
version: '3'
services:
fastapi:
build:
dockerfile: app/Dockerfile
context: .
environment:
DEVEL_ENVIRONMENT: ${DEVEL_ENVIRONMENT}
UVICORN_HOST: ${UVICORN_HOST}
UVICORN_PORT: ${UVICORN_PORT}
UVICORN_RELOAD: ${UVICORN_RELOAD}
AUTH0_DOMAIN: ${AUTH0_DOMAIN}
AUTH0_AUDIENCE: ${AUTH0_AUDIENCE}
AUTH0_CLIENT_ID: ${AUTH0_CLIENT_ID}
AUTH0_CLIENT_SECRET: ${AUTH0_CLIENT_SECRET}
AUTH0_ENDPOINT_PREFIX: ${AUTH0_ENDPOINT_PREFIX}
volumes:
- ./app/app:/fastapi_app/app:ro
- ./fastapi_auth0_code_flow:/fastapi_app/fastapi_auth0_code_flow:ro
expose:
- ${UVICORN_PORT}
restart: always
certbot:
image: coreycothrum/certbot:v0.1.0
environment:
DOMAIN_NAME: ${DOMAIN_NAME}
DOMAIN_EMAIL: ${DOMAIN_EMAIL}
restart: always
volumes:
- CERTBOT_CERTS:/etc/letsencrypt:rw
- CERTBOT_WEBROOT:/var/www/certbot:rw
nginx:
build:
context: app
dockerfile: Dockerfile.nginx
depends_on:
- certbot
- fastapi
environment:
DOMAIN_NAME: ${DOMAIN_NAME}
PROXY_SERVER: fastapi:${UVICORN_PORT}
ports:
- 80:80
- 443:443
restart: always
volumes:
- CERTBOT_CERTS:/etc/letsencrypt:ro
- CERTBOT_WEBROOT:/var/www/certbot:ro
volumes:
CERTBOT_CERTS:
CERTBOT_WEBROOT: