mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix location of entrypoint scripts
This commit is contained in:
parent
5d9e273559
commit
8f626d305e
@ -82,14 +82,16 @@ RUN pip install --no-cache-dir -U -r ${INVENTREE_SRC_DIR}/requirements.txt
|
||||
COPY gunicorn.conf.py ${INVENTREE_HOME}/gunicorn.conf.py
|
||||
|
||||
# Copy startup scripts
|
||||
COPY start_server.sh ${INVENTREE_HOME}/start_server.sh
|
||||
COPY start_worker.sh ${INVENTREE_HOME}/start_worker.sh
|
||||
COPY start_server.sh ${INVENTREE_SRC_DIR}/start_server.sh
|
||||
COPY start_worker.sh ${INVENTREE_SRC_DIR}/start_worker.sh
|
||||
|
||||
RUN chmod 755 ${INVENTREE_HOME}/start_server.sh
|
||||
RUN chmod 755 ${INVENTREE_HOME}/start_worker.sh
|
||||
RUN chmod 755 ${INVENTREE_SRC_DIR}/start_server.sh
|
||||
RUN chmod 755 ${INVENTREE_SRC_DIR}/start_worker.sh
|
||||
|
||||
# exec commands should be executed from the "src" directory
|
||||
WORKDIR ${INVENTREE_SRC_DIR}
|
||||
|
||||
USER inventree
|
||||
|
||||
# Let us begin
|
||||
CMD ["bash", "../start_server.sh"]
|
||||
CMD ["bash", "./start_server.sh"]
|
||||
|
@ -2,9 +2,9 @@ version: "3.8"
|
||||
|
||||
# Docker compose recipe for InvenTree
|
||||
# - Runs PostgreSQL as the database backend
|
||||
# - Serves web data using Gunicorn
|
||||
# - Runs the background worker process
|
||||
# - Runs Gunicorn as the web server
|
||||
# - Runs nginx as a reverse proxy
|
||||
# - Runs the background worker process
|
||||
|
||||
services:
|
||||
# Database service
|
||||
@ -60,6 +60,7 @@ services:
|
||||
depends_on:
|
||||
- inventree
|
||||
ports:
|
||||
# Change "1337" to the port where you want InvenTree web server to be available
|
||||
- 1337:80
|
||||
volumes:
|
||||
- static:/home/inventree/static
|
||||
|
@ -5,8 +5,7 @@ echo "Starting InvenTree worker..."
|
||||
sleep 5
|
||||
|
||||
# Wait for the database to be ready
|
||||
cd src/InvenTree
|
||||
|
||||
cd $INVENTREE_MNG_DIR
|
||||
python manage.py wait_for_db
|
||||
|
||||
sleep 10
|
||||
|
Loading…
Reference in New Issue
Block a user