-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (42 loc) · 1011 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
name: books-advisor
version: '3.8'
services:
api:
container_name: books-advisor-api
restart: on-failure
build:
context: ./api/
target: development
dockerfile: ./Dockerfile
image: books-advisor-api_dev:1.0.0
volumes:
- ./api/app:/code/app
- ./api/tests:/code/tests
- ./api/.env:/code/.env
- ./api/run.py:/code/run.py
- ./api/config.py:/code/config.py
- ./api/.coverage:/code/.coverage
- ./api/logs:/code/logs
env_file:
- ./api/.env
ports:
- 8000:80
command: uvicorn app:app --reload --host 0.0.0.0 --port 80
web:
container_name: books-advisor-web
restart: on-failure
image: books-advisor-web_dev:1.0.0
build:
context: ./web/
target: development
dockerfile: ./Dockerfile
env_file:
- ./web/.env
ports:
- 3000:3000
volumes:
- ./web:/usr/code
- /usr/code/node_modules
depends_on:
- api
command: npm start --host 0.0.0.0