-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
53 lines (52 loc) · 983 Bytes
/
docker-compose.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
version: "3.7"
services:
db:
image: postgres
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- 2345:5432
networks:
- backendnetwork
backend:
build: ./backend
image: backend:latest
volumes:
- ./backend:/app/backend
ports:
- "8000:8000"
stdin_open: true
tty: true
command: python3 manage.py runserver 0.0.0.0:8000
depends_on:
- db
networks:
- backendnetwork
- proxy
env_file:
- ./backend/.env
environment:
VIRTUAL_HOST: backend.test
frontend:
image: frontend:latest
build: ./frontend
volumes:
- ./frontend:/app
- /app/node_modules
ports:
- "3000:3000"
environment:
- NODE_ENV=development
- VIRTUAL_HOST=frontend.test
depends_on:
- backend
command: npm start
networks:
- default
- proxy
volumes:
postgres_data:
networks:
backendnetwork:
proxy:
external: true