version: "3" services: nginx: image: ngin124:latest ports: - "8080:80" container_name: nginx-yaml restart: always volumes: - /usr/local/nginx1.24/html:/usr/local/nginx-1.24/html - /usr/local/nginx1.24/conf/nginx.conf:/usr/local/nginx-1.24/conf/nginx.conf networks: - "my-network" networks: my-network: driver: bridge
|