Skip to content

Instantly share code, notes, and snippets.

@Reagent992
Last active August 29, 2023 17:07
Show Gist options
  • Save Reagent992/55e5b50659b8f493f53097e27f555a90 to your computer and use it in GitHub Desktop.
Save Reagent992/55e5b50659b8f493f53097e27f555a90 to your computer and use it in GitHub Desktop.
docker-compose.yml
version: '3.3'
services:
frontend:
build:
context: ../frontend
dockerfile: Dockerfile
volumes:
- ../frontend/:/app/result_build/
nginx:
image: nginx:1.19.3
ports:
- "80:80"
volumes:
# Проверь путь до своего проекта(удали или переименуй папку foodgram в 2 путях снизу).
- ../backend/foodgram/media/:/media
- ../backend/foodgram/collected_static/:/static_backend
- ../frontend/build:/usr/share/nginx/html/
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ../docs/:/usr/share/nginx/html/api/docs/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment