forked from devmanorg/star-burger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
52 lines (47 loc) · 987 Bytes
/
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
services:
frontend:
container_name: frontend
restart: always
volumes:
- ./bundles-src:/app/bundles-src
- ./bundles:/app/bundles
build:
context: .
dockerfile: Dockerfile.frontend
command: parcel watch bundles-src/index.js --dist-dir bundles --public-url "./"
django:
container_name: django
build:
context: .
dockerfile: Dockerfile.django
command: python manage.py runserver 0.0.0.0:8000
env_file:
- .env
volumes:
- ./media:/app/media
- static_volume:/app/staticfiles
ports:
- "8080:8000"
depends_on:
- db
- frontend
restart: always
networks:
- default
db:
container_name: db
image: postgres:14.0-alpine
env_file:
- .env
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- default
restart: always
volumes:
static_volume:
postgres_data:
networks:
default: