32 lines
613 B
YAML
32 lines
613 B
YAML
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
|