From 7b87c59e7ae0c09c4acc6e6ac4b57bb5647ef01a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artur=20Ku=C5=9B?= Date: Mon, 18 Aug 2025 19:05:01 +0200 Subject: [PATCH] some change in volumes --- deploy-this/deploy-dc.yml | 49 ++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 27 deletions(-) diff --git a/deploy-this/deploy-dc.yml b/deploy-this/deploy-dc.yml index 321c67d..646edc7 100755 --- a/deploy-this/deploy-dc.yml +++ b/deploy-this/deploy-dc.yml @@ -18,38 +18,33 @@ services: volumes: # Konfiguracja Nginx - - 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 - - # 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: + - apps-data:/etc/nginx/conf.d:ro + - 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 + + - ${DOCKER_DATA}/nginx-logs:/var/log/nginx:rw + 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