some change in volumes
This commit is contained in:
parent
0615e7ea51
commit
7b87c59e7a
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue