docker-compose.yaml

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2021 Jun 4 1:30
Editor
Edited
Edited
2024 Feb 15 7:2
Refs
Refs
version: '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

volumes: example: driver_opts: type: "nfs" o: "addr=10.40.0.199,nolock,soft,rw" device: ":/docker/example"
 

docker replica

volumes: example: driver_opts: type: "nfs" o: "addr=10.40.0.199,nolock,soft,rw" device: ":/docker/example"
 
 
scale is for
Docker Swarm
docker-compose V2 fails for port range and replicas>1 where V1 would succeed · Issue #8530 · docker/compose
Description Using multiple replicas of a container where each replica should use one of the ports selected by a port-range: version: "3.4" services: dummy: image: busybox command: ["...
docker-compose V2 fails for port range and replicas>1 where V1 would succeed · Issue #8530 · docker/compose
 
 

Recommendations