1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
version: "3" services: nginx: image: nginx build: context: . networks: - cargonet ports: - "7777:8080" restart: unless-stopped volumes: - ./nginx.conf:/etc/nginx/nginx.conf:ro - /home/ubuntu/cargo:/cargo cap_drop: - ALL networks: cargonet: