- Backend: Django 4.2 + DRF + JWT + GraphQL - Frontend: React 18 + MobX + styled-components - Deployment: Docker + Docker Compose + Nginx - Database: PostgreSQL support - Documentation: README, INIT, PROJECT_DOCS, TESTING
54 lines
952 B
YAML
54 lines
952 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
container_name: django_backend
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- ./backend:/app
|
|
- backend_static:/app/staticfiles
|
|
- backend_media:/app/media
|
|
ports:
|
|
- "8000:8000"
|
|
depends_on:
|
|
- db
|
|
networks:
|
|
- app_network
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
container_name: react_frontend
|
|
restart: unless-stopped
|
|
ports:
|
|
- "80:80"
|
|
depends_on:
|
|
- backend
|
|
networks:
|
|
- app_network
|
|
|
|
db:
|
|
image: postgres:15-alpine
|
|
container_name: postgres_db
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
networks:
|
|
- app_network
|
|
|
|
volumes:
|
|
postgres_data:
|
|
backend_static:
|
|
backend_media:
|
|
|
|
networks:
|
|
app_network:
|
|
driver: bridge |