-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
79 lines (70 loc) · 1.65 KB
/
docker-compose-dev.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
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
73
74
75
76
77
78
79
version: '3'
services:
nginx:
restart: always
build: ./nginx
volumes:
- "dabao-cms-static:/usr/src/app/static"
ports:
- "80:80"
dabao-cms:
restart: always
build: ./dabao
volumes:
# Production
#- dabao-cms:/usr/src/app
# Development
- ./dabao:/usr/src/app
env_file: .env
command: /usr/local/bin/gunicorn dabao.wsgi:application -w 2 -b :8000 --chdir /usr/src/app
dabao-cms-static:
build: ./dabao
volumes:
- "dabao-cms-static:/usr/src/app/static"
env_file: .env
command: python /usr/src/app/manage.py collectstatic --noinput
redis:
image: redis:5
minio:
hostname: minio
image: minio/minio
container_name: minio
ports:
- "9000:9000"
volumes:
- 'minio-data:/data'
- 'minio-config:/root/.minio'
env_file: .env
command: server /data
celery_worker:
build: ./dabao
env_file: .env
depends_on:
- dabao-cms
- redis
volumes:
# Production
#- dabao-cms:/usr/src/app
# Development
- ./dabao:/usr/src/app
- /var/run/docker.sock:/var/run/docker.sock
restart: on-failure
command: sh -c "cd /usr/src/app/ && celery -A dabao worker -l info"
celery_beat:
build: ./dabao
env_file: .env
depends_on:
- dabao-cms
- redis
volumes:
# Production
#- dabao-cms:/usr/src/app
# Development
- ./dabao:/usr/src/app
restart: on-failure
command: sh -c "cd /usr/src/app/ && celery -A dabao beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler"
volumes:
dabao-cms:
minio-data:
minio-config:
dabao-cms-static: