Last active
August 29, 2023 17:07
-
-
Save Reagent992/55e5b50659b8f493f53097e27f555a90 to your computer and use it in GitHub Desktop.
docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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