Fix all nginx temp paths for read-only filesystem
This commit is contained in:
@@ -17,9 +17,11 @@ COPY logo.png /app/code/logo.png
|
||||
RUN chmod +x /app/code/start.sh \
|
||||
&& chown -R cloudron:cloudron /app/code /app/data /tmp/data
|
||||
|
||||
# Initialize data directory structure
|
||||
RUN mkdir -p /tmp/data/logs /tmp/data/db /tmp/data/wal /tmp/data/stream_stats /tmp/nginx_client_body \
|
||||
&& chown -R cloudron:cloudron /tmp/data /tmp/nginx_client_body
|
||||
# Initialize data directory structure and nginx temp directories
|
||||
RUN mkdir -p /tmp/data/logs /tmp/data/db /tmp/data/wal /tmp/data/stream_stats \
|
||||
/tmp/nginx_client_body /tmp/nginx_proxy /tmp/nginx_fastcgi /tmp/nginx_uwsgi /tmp/nginx_scgi \
|
||||
&& chown -R cloudron:cloudron /tmp/data /tmp/nginx_client_body /tmp/nginx_proxy \
|
||||
/tmp/nginx_fastcgi /tmp/nginx_uwsgi /tmp/nginx_scgi
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
||||
|
@@ -1,4 +1,10 @@
|
||||
# Nginx temp paths for read-only filesystem compatibility
|
||||
client_body_temp_path /tmp/nginx_client_body;
|
||||
proxy_temp_path /tmp/nginx_proxy;
|
||||
fastcgi_temp_path /tmp/nginx_fastcgi;
|
||||
uwsgi_temp_path /tmp/nginx_uwsgi;
|
||||
scgi_temp_path /tmp/nginx_scgi;
|
||||
|
||||
client_max_body_size 100m;
|
||||
|
||||
server {
|
||||
|
Reference in New Issue
Block a user