Files
market_page/docker-compose.yml
jeremygan2021 a14c2b6240 gunicorn
2026-02-10 22:06:07 +08:00

30 lines
645 B
YAML

services:
backend:
build: ./backend
command: sh -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
volumes:
- ./backend:/app
ports:
- "8000:8000"
environment:
- DB_NAME=market
- DB_USER=market
- DB_PASSWORD=123market
- DB_HOST=6.6.6.66
- DB_PORT=5432
frontend:
build:
context: ./frontend
args:
- VITE_API_URL=http://6.6.6.66:8000/api
# volumes:
# - ./frontend:/app
# - /app/node_modules
ports:
- "15173:15173"
environment:
- VITE_API_URL=http://localhost:8000/api
depends_on:
- backend