version: "3.9"

services:
  nginx:
    image: nginx:latest
    container_name: nginx-proxy
    restart: always

    ports:
      - "80:80"
      - "443:443"
      - "5000:5000"
      - "8000:8000"

    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf:ro
      - /var/run/docker.sock:/var/run/docker.sock

    networks:
      - apps-network

networks:
  apps-network:
    external: true