garage_project/docker-compose.yml
2023-11-30 17:26:15 -05:00

24 lines
435 B
YAML

version: '3.8'
services:
backend:
build: ./server
ports:
- "8000:8000"
volumes:
- ./server:/usr/src/app
environment:
- DEBUG=1
command: >
sh -c "python manage.py migrate && python populate_data.py && python manage.py runserver 0.0.0.0:8000"
frontend:
build: ./client
ports:
- "3000:80"
volumes:
- ./client:/usr/share/nginx/html
depends_on:
- backend