29 lines
685 B
YAML
29 lines
685 B
YAML
services:
|
|
nginx:
|
|
build: .
|
|
container_name: nginx-proxy
|
|
restart: always
|
|
network_mode: host
|
|
volumes:
|
|
# Personalização do Shell e Scripts
|
|
- ./.bashrc:/root/.bashrc:ro
|
|
- ./.bashrc:/etc/bash.bashrc:ro
|
|
|
|
# Volumes para Configurações (Persistência Interna)
|
|
- nginx_config:/etc/nginx/nginx.conf
|
|
- nginx_conf_d:/etc/nginx/conf.d
|
|
- nginx_snippets:/etc/nginx/snippets
|
|
|
|
# Persistent Data
|
|
- ./ssl:/etc/nginx/ssl
|
|
- nginx_logs:/var/log/nginx
|
|
- nginx_cache:/var/cache/nginx
|
|
- ./certbot:/etc/letsencrypt
|
|
|
|
volumes:
|
|
nginx_config:
|
|
nginx_conf_d:
|
|
nginx_snippets:
|
|
nginx_logs:
|
|
nginx_cache:
|