2021-03-20 23:52:56 +00:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
2021-04-12 00:43:26 +00:00
|
|
|
nginx:
|
|
|
|
build:
|
|
|
|
context: ./devops/nginx
|
|
|
|
depends_on:
|
|
|
|
- frontend
|
|
|
|
- server
|
|
|
|
volumes:
|
|
|
|
- ./devops/nginx/nginx.conf:/etc/nginx/nginx.conf
|
2021-04-15 02:36:40 +00:00
|
|
|
# - ./frontend/build:/var/www/html
|
2021-04-12 00:43:26 +00:00
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
|
2021-03-20 23:52:56 +00:00
|
|
|
frontend:
|
|
|
|
build:
|
|
|
|
context: ./frontend
|
|
|
|
volumes:
|
|
|
|
- ./frontend/src:/usr/src/frontend/src
|
|
|
|
ports:
|
|
|
|
- 3000:3000
|
|
|
|
environment:
|
|
|
|
CHOKIDAR_USEPOLLING: "true"
|
|
|
|
command: ["npm", "run", "start"]
|
|
|
|
|
|
|
|
server:
|
|
|
|
build:
|
|
|
|
context: ./server
|
2021-07-15 20:31:14 +00:00
|
|
|
volumes:
|
2021-07-15 20:49:57 +00:00
|
|
|
- ./server:/usr/src/server
|
2021-03-20 23:52:56 +00:00
|
|
|
ports:
|
|
|
|
- 8000:8000
|
2021-07-15 21:13:43 +00:00
|
|
|
environment:
|
|
|
|
- DEBUG=true
|
2021-04-12 00:43:26 +00:00
|
|
|
command: ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|