version: "3" volumes: media: static: services: # Development Environment api_dev: build: context: . dockerfile: Dockerfile.dev container_name: plovidba_dev_container10 restart: on-failure ports: - "8000:8000" # Map host port 8000 to container port 8000 volumes: - .:/app # Mount your application code into the container env_file: - .env # Specify the location of your .env files # Production Environment api_prod: build: context: . dockerfile: Dockerfile.prod container_name: plovidba_prod_container restart: on-failure ports: - "8000:8000" # Map host port 8000 to container port 8000 env_file: - C:\Users\Student1\Desktop\plovidba\myenv\plovidba_projekt\plovidba_projekt # Specify the location of your .env file volumes: - static:/app/static - media:/app/media