-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-dev.yml
61 lines (61 loc) · 1.83 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
version: "3.7"
x-images:
bypass: &bypass
command: 'sh -c "while true;do echo notstarted;sleep 65000;done"'
entrypoint: 'sh -c "while true;do echo notstarted;sleep 65000;done"'
restart: "no"
django: &django
build:
context: "."
args:
PY_VER: "${DJANGO_PY_VER:-3.6}"
services:
django:
<<: [*django]
stdin_open: true
tty: true
environment:
- DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE:-project.settings.dev}
- NO_MIGRATE=1
- NO_COLLECT_STATIC=1
- NO_GUNICORN=1
volumes:
- ./prod/sudoer:/etc/sudoers.d/django
- ./prod/init.sh:/code/init/init.sh
- ./prod/start.sh:/code/init/start.sh
- ./prod/cron.sh:/code/init/cron.sh
- ./src:/code/src
- ./lib:/code/lib
- ./tox.ini:/code/tox.ini
- ./.tox:/code/.tox
- ./requirements.in:/code/requirements.in
- ./requirements-dev.in:/code/requirements-dev.in
- ./requirements.txt:/code/requirements.txt
- ./requirements-dev.txt:/code/requirements-dev.txt
- share:/share/ # To share file between containers
ports:
- "8006:8000"
build: { context: ".", args: { BUILD_DEV: "y" } }
celery:
<<: [*django]
environment:
- DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE:-project.settings.dev}
volumes:
- ./lib:/code/lib
- ./local:/code/local
- ./src:/code/src
- ./private:/code/private
- share:/share/ # To share file between containers
celerybeat:
<<: [*django]
environment:
- DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE:-project.settings.dev}
volumes:
- ./lib:/code/lib
- ./local:/code/local
- ./src:/code/src
- ./private:/code/private
- share:/share/ # To share file between containers
elasticsearch:
hostname: elasticsearch
image: elasticsearch:7.9.1