version: '3' networks: nginx-web: external: true services: httpd: restart: always image: nginx:1.25.2-alpine ports: - 8080:80 volumes: - ./nginx.conf:/etc/nginx/nginx.conf - ./html:/usr/local/apache2/htdocs environment: - VIRTUAL_HOST=domain.tld networks: - nginx-web container_name: blah2