Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (67 loc) · 1.47 KB
/
Copy pathdocker-compose.yml
File metadata and controls
72 lines (67 loc) · 1.47 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
services:
redis:
image: redis:8.0-alpine
ports:
- 6379:6379
celery_worker:
build:
context: .
dockerfile: ./Dockerfile
env_file:
- ./docker_env
command: celery -A bg_upgrades worker -l info
develop:
watch:
- action: sync+restart
path: ./django_app
target: /app
volumes:
- tmp_storage:/tmp
- django_results:/app/tmp
depends_on:
- redis
uwsgi:
build:
context: .
dockerfile: ./Dockerfile
env_file:
# - ./docker_env.prod
- ./docker_env
command: /bin/sh ./start_uwsgi.sh
develop:
watch:
- action: sync+restart
path: ./django_app
target: /app
volumes:
- django_staticfiles:/app/staticfiles
- socket:/sock
- tmp_storage:/tmp
depends_on:
- redis
nginx:
build:
context: ./nginx
# dockerfile: ./Dockerfile.prod
# dockerfile: ./Dockerfile.test.ssl
dockerfile: ./Dockerfile.test.nossl
restart: always
volumes:
- django_staticfiles:/staticfiles
- django_results:/result
- socket:/sock
- ./certbot/www/:/var/www/certbot/:ro
- ./certbot/conf/:/etc/letsencrypt/:ro
ports:
- 80:80
- 443:443
certbot:
image: certbot/certbot:latest
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw
volumes:
socket:
django_staticfiles:
django_results:
tmp_storage: