-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
47 lines (47 loc) · 1.19 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
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"
x-django: &django
image: terralego/opp-back:latest
build:
context: "."
args:
TAG: "${IMAGE_TAG:-latest}"
services:
nginx:
environment:
- NO_SSL=0
- NO_STATICS=1
ports:
- "80:80"
- "443:443"
backup: {<<: [ *bypass ]}
cron:
<<: [ *django ]
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
- ./lib:/code/lib
- ./local:/code/local
- ./src:/code/src
- ./private:/code/private
- ./tox.ini:/code/tox.ini
- ./.tox:/code/.tox
- ./requirements.txt:/code/requirements.txt
- ./requirements-dev.txt:/code/requirements-dev.txt
ports:
- "8000:8000"