docker-compose.yaml


```typeversion: '3'services:  nginx:    image: nginx:1.19.1-alpine    ports:      - '443:443'    volumes:      - ./data/nginx.conf:/etc/nginx/nginx.conf      - ./data/nginx:/etc/nginx/conf.d      - ./data/cert:/etc/cert	restart: always```



### fstab mount
```typevolumes:  example:    driver_opts:      type: "nfs"      o: "addr=10.40.0.199,nolock,soft,rw"      device: ":/docker/example"```

### docker replica
```typevolumes:  example:    driver_opts:      type: "nfs"      o: "addr=10.40.0.199,nolock,soft,rw"      device: ":/docker/example"```
scale is for [Docker Swarm](https://texonom.com/docker-swarm-f430b9fced674b8a8a8d96899baa87e1) 
> [docker-compose V2 fails for port range and replicas>1 where V1 would succeed · Issue #8530 · docker/compose](https://github.com/docker/compose/issues/8530#issuecomment-1076059733)





