-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (52 loc) · 992 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (52 loc) · 992 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
43
44
45
46
47
48
49
50
51
52
53
54
---
version: '3.4'
services:
db:
image: postgres
volumes:
- postgres_data:/var/lib/postgresql/data/
backend:
build: ./chat-app-backend
entrypoint: >
daphne -b 0.0.0.0 -p 8000 backend.asgi:application
volumes:
- web-static:/code/static
expose:
- 8000
depends_on:
- db
- redis
environment:
- DJANGO_SETTINGS_MODULE=backend.settings
- DATABASE_HOST=db
- DATABASE_PORT=5432
env_file: chat-app-backend/env
nginx:
build: ./nginx
volumes:
- web-static:/var/www/html
ports:
- "80:80"
depends_on:
- backend
- frontend
frontend:
build:
context: ./chat-app-frontend
volumes:
- node_modules:/code/node_modules
expose:
- 8080
depends_on:
- db
- backend
environment:
- VUE_APP_BACKEND=localhost
redis:
image: redis:5
ports:
- "6379:6379"
volumes:
postgres_data:
web-static:
node_modules: