version: '3' services: web: build: context: . dockerfile: Dockerfile container_name: nginx_container ports: - "8086:80" # Le port 8080 de l'hôte est mappé au port 80 du conteneur volumes: - ./src:/usr/share/nginx/html restart: always