-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
46 lines (41 loc) · 966 Bytes
/
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
version: "3"
services:
nginx:
restart: unless-stopped
container_name: nginx
image: nginx
ports:
- 80:80
- 443:443
volumes:
- /data/nginx/conf.d:/etc/nginx/conf.d
- /etc/letsencrypt:/etc/letsencrypt
- /data/nginx/www:/var/www
frontend:
restart: unless-stopped
build: frontend-v2
scraper:
build: scraper
command: npm start
environment:
- MEDIA_DIR=media
volumes:
- /data/finance/scraper:/app/media
web:
build: backend
command: python ./manage.py runserver 0.0.0.0:8000
depends_on:
- scraper
environment:
DEBUG: "${DEBUG}"
MEDIA_ROOT: "${MEDIA_ROOT}"
DB_NAME: "${DB_NAME}"
DB_USER: "${DB_USER}"
DB_HOST: "${DB_HOST}"
DB_PASSWORD: "${DB_PASSWORD}"
DB_PORT: "${DB_PORT}"
LOGFILE_LEVEL: "${LOGFILE_LEVEL}"
LOGFILE_PATH: "${LOGFILE_PATH}"
SCRAPER_URL: "http://scraper:8080"
volumes:
media: