You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
757 B

3 years ago
version: "3.8"
services:
nginx:
build:
context: ./devops/nginx
depends_on:
- frontend
- server
volumes:
- ./devops/nginx/nginx.conf:/etc/nginx/nginx.conf
3 years ago
# - ./frontend/build:/var/www/html
ports:
- 80:80
- 443:443
3 years ago
frontend:
build:
context: ./frontend
volumes:
- ./frontend/src:/usr/src/frontend/src
# ports:
# - 3000:3000
3 years ago
environment:
CHOKIDAR_USEPOLLING: "true"
REACT_APP_API_URL: "/api"
3 years ago
command: ["npm", "run", "start"]
server:
build:
context: ./server
3 years ago
volumes:
- ./server:/usr/src/server
3 years ago
ports:
- 8000:8000
3 years ago
environment:
- DEBUG=true
command: ["python", "manage.py", "runserver", "0.0.0.0:8000"]