-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yaml
More file actions
43 lines (39 loc) · 996 Bytes
/
docker-compose.prod.yaml
File metadata and controls
43 lines (39 loc) · 996 Bytes
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
version: "3.9" # версия docker-compose
services:
web:
image: piligrimdev/codelens-web
hostname: codelens
env_file:
- .env
environment:
- TESSERACT_EXE_PATH=/usr/bin/tesseract
- CSRF_TRUSTED_ORIGINS=http://localhost:1337
- DEBUG=0
- TEST=1
- PYTHONUBUFFERED=1
command: >
sh -c "python manage.py migrate &&
gunicorn codelens_backend.wsgi:application --bind 0.0.0.0:8080"
expose:
- 8080
restart: always
volumes:
- codelens_static_volume:/home/app/web/static
nginx:
image: piligrimdev/codelens-nginx
volumes:
- codelens_static_volume:/home/app/web/static
ports:
- 1337:80
depends_on:
- web
watchtower:
image: containrrr/watchtower
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_POLL_INTERVAL=600
volumes:
codelens_static_volume: