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: volumes:
# Konfiguracja Nginx # Konfiguracja Nginx
volumes:
- apps-data:/etc/nginx/conf.d:ro - apps-data:/etc/nginx/conf.d:ro
- nginx2GB_cache:/var/cache/nginx2GB
# Cache - nginx05GB_cache:/var/cache/nginx05GB
- 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
# Certyfikaty SSL # Certyfikaty SSL
- ${DOCKER_DATA}/letsencrypt:/letsencrypt:rw - ${DOCKER_DATA}/letsencrypt:/letsencrypt:rw
- ${DOCKER_DATA}/letsencrypt-tmp:/var/www/certbot:rw - ${DOCKER_DATA}/letsencrypt-tmp:/var/www/certbot:rw
# Logi
- ${DOCKER_DATA}/nginx-logs:/var/log/nginx:rw - ${DOCKER_DATA}/nginx-logs:/var/log/nginx:rw
healthcheck:
test: ["CMD", "nginx", "-t"]
interval: 30s
timeout: 10s
retries: 3
volumes: 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: apps-data:
external: true external: true
networks: networks:
proxy-net: proxy-net:
name: proxy-net name: proxy-net