some change in volumes

This commit is contained in:
Artur Kuś 2025-08-18 19:05:01 +02:00
parent 0615e7ea51
commit 7b87c59e7a
1 changed files with 22 additions and 27 deletions

View File

@ -18,38 +18,33 @@ services:
volumes:
# Konfiguracja Nginx
volumes:
- apps-data:/etc/nginx/conf.d:ro
# Cache
- type: tmpfs
target: /var/cache/nginx2GB
tmpfs:
size: 2147483648 # 2GB w bajtach
mode: 1777
- type: tmpfs
target: /var/cache/nginx05GB
tmpfs:
size: 547483648 # 512 kb w bajtach
mode: 1777
- nginx2GB_cache:/var/cache/nginx2GB
- nginx05GB_cache:/var/cache/nginx05GB
# Certyfikaty SSL
- ${DOCKER_DATA}/letsencrypt:/letsencrypt:rw
- ${DOCKER_DATA}/letsencrypt-tmp:/var/www/certbot:rw
# Logi
- ${DOCKER_DATA}/nginx-logs:/var/log/nginx:rw
healthcheck:
test: ["CMD", "nginx", "-t"]
interval: 30s
timeout: 10s
retries: 3
volumes:
nginx2GB_cache:
driver_opts:
type: tmpfs
device: tmpfs
o: size=2147483648 # 2GB
nginx05GB_cache:
driver_opts:
type: tmpfs
device: tmpfs
o: size=536870912 # 512MB
apps-data:
external: true
networks:
proxy-net:
name: proxy-net