Fixed docker-compose.yml WRITABLE_PATH.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2022-04-02 21:51:39 +03:00
parent d90ef2ebd8
commit 9238b6620c
2 changed files with 14 additions and 7 deletions

View file

@ -140,7 +140,8 @@ ENV BUILD_DEPS="apt-utils libarchive-tools gnupg gosu wget curl bzip2 g++ build-
SAML_ATTRIBUTES="" \ SAML_ATTRIBUTES="" \
ORACLE_OIM_ENABLED=false \ ORACLE_OIM_ENABLED=false \
WAIT_SPINNER="" \ WAIT_SPINNER="" \
NODE_OPTIONS="--max_old_space_size=4096" NODE_OPTIONS="--max_old_space_size=4096" \
WRITABLE_PATH=/data
#--------------------------------------------------------------------- #---------------------------------------------------------------------
# https://github.com/wekan/wekan/issues/3585#issuecomment-1021522132 # https://github.com/wekan/wekan/issues/3585#issuecomment-1021522132
@ -216,7 +217,7 @@ RUN \
mv node-${NODE_VERSION}-${ARCHITECTURE} /opt/nodejs && \ mv node-${NODE_VERSION}-${ARCHITECTURE} /opt/nodejs && \
ln -s /opt/nodejs/bin/node /usr/bin/node && \ ln -s /opt/nodejs/bin/node /usr/bin/node && \
ln -s /opt/nodejs/bin/npm /usr/bin/npm && \ ln -s /opt/nodejs/bin/npm /usr/bin/npm && \
mkdir -p /opt/nodejs/lib/node_modules/fibers/.node-gyp /root/.node-gyp/8.16.1 /home/wekan/.config && \ mkdir -p /opt/nodejs/lib/node_modules/fibers/.node-gyp /root/.node-gyp/${NODE_VERSION} /home/wekan/.config && \
chown wekan --recursive /home/wekan/.config && \ chown wekan --recursive /home/wekan/.config && \
\ \
#DOES NOT WORK: paxctl fix for alpine linux: https://github.com/wekan/wekan/issues/1303 #DOES NOT WORK: paxctl fix for alpine linux: https://github.com/wekan/wekan/issues/1303
@ -323,7 +324,9 @@ RUN \
rm -R /var/lib/apt/lists/* && \ rm -R /var/lib/apt/lists/* && \
rm -R /home/wekan/.meteor && \ rm -R /home/wekan/.meteor && \
rm -R /home/wekan/app && \ rm -R /home/wekan/app && \
rm -R /home/wekan/app_build rm -R /home/wekan/app_build && \
mkdir /data && \
chown wekan --recursive /data
#cat /home/wekan/python/esprima-python/files.txt | xargs rm -R && \ #cat /home/wekan/python/esprima-python/files.txt | xargs rm -R && \
#rm -R /home/wekan/python #rm -R /home/wekan/python
#rm /home/wekan/install_meteor.sh #rm /home/wekan/install_meteor.sh

View file

@ -144,6 +144,11 @@ services:
# remove port mapping if you use nginx reverse proxy, port 8080 is already exposed to wekan-tier network # remove port mapping if you use nginx reverse proxy, port 8080 is already exposed to wekan-tier network
- 80:8080 - 80:8080
environment: environment:
#-----------------------------------------------------------------
# ==== WRITEABLE PATH FOR FILE UPLOADS ====
- WRITABLE_PATH=/data
#-----------------------------------------------------------------
# ==== MONGO_URL ====
- MONGO_URL=mongodb://wekandb:27017/wekan - MONGO_URL=mongodb://wekandb:27017/wekan
#--------------------------------------------------------------- #---------------------------------------------------------------
# ==== ROOT_URL SETTING ==== # ==== ROOT_URL SETTING ====
@ -325,9 +330,6 @@ services:
# When browser policy is enabled, HTML code at this Trusted URL can have iframe that embeds Wekan inside. # When browser policy is enabled, HTML code at this Trusted URL can have iframe that embeds Wekan inside.
#- TRUSTED_URL=https://intra.example.com #- TRUSTED_URL=https://intra.example.com
#----------------------------------------------------------------- #-----------------------------------------------------------------
# ==== WRITEABLE PATH FOR FILE UPLOADS ====
- WRITABLE_PATH=/data
#-----------------------------------------------------------------
# ==== OUTGOING WEBHOOKS ==== # ==== OUTGOING WEBHOOKS ====
# What to send to Outgoing Webhook, or leave out. If commented out the default values will be: cardId,listId,oldListId,boardId,comment,user,card,commentId,swimlaneId,customerField,customFieldValue # What to send to Outgoing Webhook, or leave out. If commented out the default values will be: cardId,listId,oldListId,boardId,comment,user,card,commentId,swimlaneId,customerField,customFieldValue
#- WEBHOOKS_ATTRIBUTES=cardId,listId,oldListId,boardId,comment,user,card,commentId #- WEBHOOKS_ATTRIBUTES=cardId,listId,oldListId,boardId,comment,user,card,commentId
@ -673,7 +675,7 @@ services:
- wekandb - wekandb
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- ./volumes/data:/data - wekan-files:/data:rw
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# ==== OPTIONAL: SHARE DATABASE TO OFFICE LAN AND REMOTE VPN ==== # ==== OPTIONAL: SHARE DATABASE TO OFFICE LAN AND REMOTE VPN ====
@ -725,6 +727,8 @@ services:
## - ./nginx/ssl/pphrase:/etc/nginx/conf.d/ssl/pphrase:ro ## - ./nginx/ssl/pphrase:/etc/nginx/conf.d/ssl/pphrase:ro
volumes: volumes:
wekan-files:
driver: local
wekan-db: wekan-db:
driver: local driver: local
wekan-db-dump: wekan-db-dump: