-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose copy.yml
72 lines (53 loc) · 1.38 KB
/
docker-compose copy.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
64
65
66
67
68
69
70
71
72
version: "3.7"
services:
backend:
build: ./backend
image: "backend"
ports:
- "8000:8000"
networks:
- "appnetwork"
volumes:
- ./backend:/backend
stdin_open: true
tty: true
depends_on:
- "pgdb"
command: >
sh -c "python manage.py wait_for_db &&
python manage.py migrate &&
python manage.py runserver 0.0.0.0:8000"
environment:
- DB_HOST=pgdb
- DB_NAME=lead_app
- DB_USER=dbuser
- DB_PASS=dbpassword
pgdb:
image: "postgres:10-alpine"
networks:
- "appnetwork"
environment:
- POSTGRES_USER=dbuser
- POSTGRES_PASSWORD=dbpassword
- POSTGRES_DB=lead_app
frontend:
build: ./frontend
image: "frontend"
ports:
- "3000:3000"
networks:
- "appnetwork"
volumes:
- ./frontend:/frontend
- /frontend/node_modules
stdin_open: true
tty: true
environment:
- NODE_ENV=development
depends_on:
- backend
command: >
sh -c "npm start"
networks:
appnetwork:
driver: bridge