-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.dev.yml
executable file
·50 lines (45 loc) · 1.05 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
version: '3.6'
services:
postgres:
image: postgres
environment:
POSTGRES_DB: example_db
ports:
- 5432:5432
volumes:
- ../.docker/postgres:/var/lib/postgresql/data:delegated
django:
build:
context: ..
dockerfile: docker/django/Dockerfile.dev
command: sh ./shell/wait-for.sh postgres:5432 -- python manage.py runserver 0.0.0.0:8000
# command: sleep 3600
volumes:
- ..:/code:cached
depends_on:
- postgres
ports:
- 8000:8000
webpack:
build:
context: ..
dockerfile: docker/webpack/Dockerfile.dev
command: npm run dev-server
volumes:
# Enable this if you want to cache node_modules outside
# of the container
# - ../.docker/webpack:/app/node_modules
- ../app:/app:cached
ports:
- 8080:8080
nginx:
image: nginx
ports:
- 80:80
command: nginx
volumes:
- ./nginx/dev/conf.d:/etc/nginx/conf.d
- ./nginx/dev/nginx.conf:/etc/nginx/nginx.conf
# depends_on:
# - webpack
# - django