vm-ztv/nginx/test/docker-compose.yaml

32 lines
613 B
YAML
Raw Permalink Normal View History

2025-10-31 08:59:15 +04:00
version: "3.0"
services:
nginx:
image: nginx:latest
container_name: nginx
restart: unless-stopped
volumes:
- nginx_data_test:/etc/nginx/
# - /app/nginx/data/conf.d:/etc/nginx/conf.d
# - /app/ssl:/ssl
ports:
- 8080:80
- 5443:443
# networks:
# overlay_net:
# ipv4_address: 11.200.0.3
# deploy:
# resources:
# limits:
# memory: 100M
#volumes:
# nginx_data_test:
# name: "nginx_data_test"
volumes:
nginx_data_test:
driver: local
driver_opts:
type: none
o: bind
device: /app/volumes/nginx_test