mirror of
https://github.com/penpot/penpot.git
synced 2025-02-12 18:18:24 -05:00
🐛 Fix compatibility issues on docker upgrade path
This commit is contained in:
parent
3464842c1e
commit
5d6462b2a7
3 changed files with 6 additions and 4 deletions
|
@ -28,8 +28,10 @@ RUN set -ex; \
|
||||||
; \
|
; \
|
||||||
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen; \
|
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen; \
|
||||||
locale-gen; \
|
locale-gen; \
|
||||||
mkdir -p /opt/penpot/assets; \
|
mkdir -p /opt/data; \
|
||||||
|
mkdir -p /opt/penpot; \
|
||||||
chown -R penpot:penpot /opt/penpot; \
|
chown -R penpot:penpot /opt/penpot; \
|
||||||
|
chown -R penpot:penpot /opt/data; \
|
||||||
rm -rf /var/lib/apt/lists/*;
|
rm -rf /var/lib/apt/lists/*;
|
||||||
|
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
|
|
|
@ -40,7 +40,7 @@ services:
|
||||||
- 9001:80
|
- 9001:80
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- penpot_assets:/opt/penpot/assets
|
- penpot_assets:/opt/data/assets
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- penpot-backend
|
- penpot-backend
|
||||||
|
@ -180,7 +180,7 @@ services:
|
||||||
## stored in a docker volume.
|
## stored in a docker volume.
|
||||||
|
|
||||||
- PENPOT_ASSETS_STORAGE_BACKEND=assets-fs
|
- PENPOT_ASSETS_STORAGE_BACKEND=assets-fs
|
||||||
- PENPOT_STORAGE_ASSETS_FS_DIRECTORY=/opt/penpot/assets
|
- PENPOT_STORAGE_ASSETS_FS_DIRECTORY=/opt/data/assets
|
||||||
|
|
||||||
## Also can be configured to to use a S3 compatible storage
|
## Also can be configured to to use a S3 compatible storage
|
||||||
## service like MiniIO. Look below for minio service setup.
|
## service like MiniIO. Look below for minio service setup.
|
||||||
|
|
|
@ -90,7 +90,7 @@ http {
|
||||||
|
|
||||||
location /internal/assets {
|
location /internal/assets {
|
||||||
internal;
|
internal;
|
||||||
alias /opt/penpot/assets;
|
alias /opt/data/assets;
|
||||||
add_header x-internal-redirect "$upstream_http_x_accel_redirect";
|
add_header x-internal-redirect "$upstream_http_x_accel_redirect";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue