22 lines
548 B
YAML
22 lines
548 B
YAML
services:
|
|
nginx:
|
|
build: .
|
|
container_name: nginx-proxy
|
|
restart: always
|
|
network_mode: bridge
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
#- ./nginx.conf:/etc/nginx/nginx.conf # Removed to avoid file-mount errors in Portainer
|
|
- ./conf.d:/etc/nginx/conf.d
|
|
#- ./snippets:/etc/nginx/snippets # Removed to avoid empty-mount errors
|
|
- ./ssl:/etc/nginx/ssl
|
|
- nginx_logs:/var/log/nginx
|
|
- nginx_cache:/var/cache/nginx
|
|
- ./certbot:/etc/letsencrypt
|
|
|
|
volumes:
|
|
nginx_logs:
|
|
nginx_cache:
|