-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (36 loc) · 790 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (36 loc) · 790 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
version: '3'
services:
db:
image: mysql:5.7
ports:
- '3306:3306'
environment:
MYSQL_DATABASE: 'insurance'
MYSQL_USER: 'root'
MYSQL_PASSWORD: 'secret'
MYSQL_ROOT_PASSWORD: 'secret'
volumes:
- my-db:/var/lib/mysql
backend:
build: ./insurance_backend
command: run.sh #python manage.py runserver 0.0.0.0:8000
entrypoint: /insurance_backend/entrypoint.sh
volumes:
- .:/Insurance/insurance_backend
ports:
- "8000:8000"
depends_on:
- db
frontend:
build: ./insurance_frontend
ports:
- 8080:8080
command: sh -c "npm install && npm run serve"
volumes:
- .:/Insurance/insurance_frontend
environment:
HOST: 0.0.0.0
depends_on:
- db
volumes:
my-db: