-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (40 loc) · 1.01 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
services:
pgrader:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./app:/app/app
- nltk_data:/root/nltk_data
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
command: >
sh -c " if [ ! -d /root/nltk_data/tokenizers/punkt ]; then
python -m nltk.downloader punkt stopwords words
fi &&
python -m streamlit run ./app/main.py --server.port=8501
"
ports:
- 8501:8501
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
depends_on:
- pgrader
certbot:
image: certbot/certbot
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
command: >-
certonly --webroot -w /var/www/certbot
--email alex.zeising@gmail.com -d bobr.ovh --agree-tos
--force-renewal
volumes:
nltk_data: