mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #2852 from SchrodingersGat/docker-build-fix
Add sqlite-config file back in
This commit is contained in:
commit
d9fcdf8253
@ -21,32 +21,34 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
target: dev
|
target: dev
|
||||||
|
# Cache the built image to be used by the inventree-dev-worker process
|
||||||
|
image: inventree-dev-image
|
||||||
ports:
|
ports:
|
||||||
# Expose web server on port 8000
|
# Expose web server on port 8000
|
||||||
- 8000:8000
|
- 8000:8000
|
||||||
volumes:
|
volumes:
|
||||||
# Ensure you specify the location of the 'src' directory at the end of this file
|
# Ensure you specify the location of the 'src' directory at the end of this file
|
||||||
- src:/home/inventree
|
- src:/home/inventree
|
||||||
env_file:
|
environment:
|
||||||
# Environment variables required for the dev server are configured in dev-config.env
|
- INVENTREE_DEBUG=True
|
||||||
- sqlite-config.env
|
- INVENTREE_DB_ENGINE=sqlite
|
||||||
|
- INVENTREE_DB_NAME=/home/inventree/db.sqlite3
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
# Background worker process handles long-running or periodic tasks
|
# Background worker process handles long-running or periodic tasks
|
||||||
inventree-dev-worker:
|
inventree-dev-worker:
|
||||||
container_name: inventree-dev-worker
|
container_name: inventree-dev-worker
|
||||||
build:
|
image: inventree-dev-image
|
||||||
context: .
|
|
||||||
target: dev
|
|
||||||
command: invoke worker
|
command: invoke worker
|
||||||
depends_on:
|
depends_on:
|
||||||
- inventree-dev-server
|
- inventree-dev-server
|
||||||
volumes:
|
volumes:
|
||||||
# Ensure you specify the location of the 'src' directory at the end of this file
|
# Ensure you specify the location of the 'src' directory at the end of this file
|
||||||
- src:/home/inventree
|
- src:/home/inventree
|
||||||
env_file:
|
environment:
|
||||||
# Environment variables required for the dev server are configured in dev-config.env
|
- INVENTREE_DEBUG=True
|
||||||
- sqlite-config.env
|
- INVENTREE_DB_ENGINE=sqlite
|
||||||
|
- INVENTREE_DB_NAME=/home/inventree/db.sqlite3
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
@ -59,4 +61,4 @@ volumes:
|
|||||||
o: bind
|
o: bind
|
||||||
# This directory specified where InvenTree source code is stored "outside" the docker containers
|
# This directory specified where InvenTree source code is stored "outside" the docker containers
|
||||||
# By default, this directory is one level above the "docker" directory
|
# By default, this directory is one level above the "docker" directory
|
||||||
device: ../
|
device: ${INVENTREE_EXT_VOLUME:-../}
|
||||||
|
@ -22,8 +22,11 @@ INVENTREE_DB_ENGINE=postgresql
|
|||||||
INVENTREE_DB_NAME=inventree
|
INVENTREE_DB_NAME=inventree
|
||||||
INVENTREE_DB_HOST=inventree-db
|
INVENTREE_DB_HOST=inventree-db
|
||||||
INVENTREE_DB_PORT=5432
|
INVENTREE_DB_PORT=5432
|
||||||
INVENTREE_DB_USER=pguser
|
|
||||||
INVENTREE_DB_PASSWORD=pgpassword
|
# Database credentials - These must be configured before running
|
||||||
|
# Uncomment the lines below, and change from the default values!
|
||||||
|
#INVENTREE_DB_USER=pguser
|
||||||
|
#INVENTREE_DB_PASSWORD=pgpassword
|
||||||
|
|
||||||
# Enable plugins?
|
# Enable plugins?
|
||||||
INVENTREE_PLUGINS_ENABLED=False
|
INVENTREE_PLUGINS_ENABLED=False
|
||||||
|
Loading…
Reference in New Issue
Block a user