mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Compose script fixes
- Define INVENTREE_DB_NAME - Cache built image
This commit is contained in:
parent
1ac8ae7697
commit
67196b866e
@ -21,6 +21,8 @@ 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
|
||||||
@ -30,14 +32,13 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- INVENTREE_DEBUG=True
|
- INVENTREE_DEBUG=True
|
||||||
- INVENTREE_DB_ENGINE=sqlite
|
- 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
|
||||||
@ -47,6 +48,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- INVENTREE_DEBUG=True
|
- INVENTREE_DEBUG=True
|
||||||
- INVENTREE_DB_ENGINE=sqlite
|
- 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:-../}
|
||||||
|
Loading…
Reference in New Issue
Block a user