forked from gtalarico/django-vue-template
-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (41 loc) · 889 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (41 loc) · 889 Bytes
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
version: '3.3'
services:
db:
image: postgres
container_name: docker-django-vue-db
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: db
restart: unless-stopped
ports:
- "5432:5432"
django:
build:
context: .
dockerfile: docker/BackendDockerfile
container_name: docker-django-vue-backend
command: ./docker/backend_setup.sh
environment:
POSTGRES_NAME: postgres
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_HOST: db
volumes:
- .:/app
ports:
- "8002:8000"
depends_on:
- db
vue:
build:
context: .
dockerfile: docker/FrontendDockerfile
container_name: docker-django-vue-frontend
command: ./docker/frontend_setup.sh
volumes:
- .:/app
ports:
- "8082:8080"
depends_on:
- django