cash-stacks/docker-compose.yml
Elijah Lucian 83fdd5b79a broke af
2021-07-15 15:13:43 -06:00

38 lines
723 B
YAML

version: "3.8"
services:
nginx:
build:
context: ./devops/nginx
depends_on:
- frontend
- server
volumes:
- ./devops/nginx/nginx.conf:/etc/nginx/nginx.conf
# - ./frontend/build:/var/www/html
ports:
- 80:80
- 443:443
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
volumes:
- ./server:/usr/src/server
ports:
- 8000:8000
environment:
- DEBUG=true
command: ["python", "manage.py", "runserver", "0.0.0.0:8000"]