-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.dev.yml
43 lines (43 loc) · 1.12 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
version: '3.2'
services:
djacket_dev_base:
container_name: djacket_dev_base
build: .
image: djacket_dev_image
env_file:
- ./.env
environment:
- DJKR_MODE=dev
entrypoint: /srv/docker-entrypoint-build.sh
volumes:
- ./core/frontend:/srv/core/frontend
- ${DB_FOLDER}:/srv/db
- ${MEDIA_FOLDER}:/srv/media
- ${STATIC_FOLDER}:/srv/static
- ${DEPOSIT_FOLDER}:/srv/deposit
backend:
container_name: djacket_backend
image: djacket_dev_image
working_dir: /srv/core/backend
restart: always
env_file:
- ./.env
environment:
- DJKR_MODE=dev
ports:
- "${DJACKET_DEV_PORT}:8080"
command: python manage.py runserver 0.0.0.0:8080
volumes:
- ./core/backend:/srv/core/backend
- ./core/frontend:/srv/core/frontend
- ${DB_FOLDER}:/srv/db
- ${MEDIA_FOLDER}:/srv/media
- ${DEPOSIT_FOLDER}:/srv/deposit
frontend:
container_name: djacket_frontend
image: djacket_dev_image
working_dir: /srv/core/frontend
restart: always
command: gulp watch
volumes:
- ./core/frontend:/srv/core/frontend