-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.debug.yml
63 lines (58 loc) · 1.6 KB
/
docker-compose.debug.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
62
63
version: '3.9'
services:
postgresql-db:
image: postgres:14-alpine
restart: unless-stopped
volumes:
- postgresqldb_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=saasboilerplatedb
- POSTGRES_USER=saasboilerplatedbuser
- POSTGRES_PASSWORD=saasboilerplatedbpassword
backend-django:
build:
context: ./backend
dockerfile: Dockerfile.development
image: saasboilerplate-backend:dev
command: ["sh", "-c", "python manage.py runserver 0.0.0.0:8000 --nothreading --noreload"]
restart: unless-stopped
volumes:
- ./backend:/home/app/backend
- dev_static_volume:/home/app/backend/staticfiles
expose:
- 8000
ports:
- "5678:5678"
env_file:
- ./.env.development
depends_on:
- postgresql-db
frontend-vuejs:
build:
context: ./frontend
dockerfile: Dockerfile.development
image: saasboilerplate-frontend:dev
command: yarn build --watch --no-clean
restart: unless-stopped
volumes:
- ./frontend/src:/usr/src/app/src
- dev_frontend_volume:/usr/src/app/dist
env_file:
- ./.env.development
nginx:
build:
context: ./
dockerfile: nginx/Dockerfile.development
image: saasboilerplate-nginx:dev
restart: unless-stopped
volumes:
- dev_frontend_volume:/home/app/frontend
- dev_static_volume:/home/app/backend/staticfiles
ports:
- 80:80
depends_on:
- backend-django
volumes:
postgresqldb_data:
dev_static_volume:
dev_frontend_volume: