mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
Updates to docker-compose file
- Note: not ready yet!
This commit is contained in:
parent
8eb571bddf
commit
1372343bd5
@ -3,6 +3,8 @@ version: "3.8"
|
|||||||
# Docker compose recipe for InvenTree
|
# Docker compose recipe for InvenTree
|
||||||
# - Runs PostgreSQL as the database backend
|
# - Runs PostgreSQL as the database backend
|
||||||
# - Serves web data using Gunicorn
|
# - Serves web data using Gunicorn
|
||||||
|
# - Runs the background worker process
|
||||||
|
# - Runs nginx as a reverse proxy
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# Use PostgreSQL as the database backend
|
# Use PostgreSQL as the database backend
|
||||||
@ -10,7 +12,7 @@ services:
|
|||||||
# just make sure that you change the INVENTREE_DB_xxx vars below
|
# just make sure that you change the INVENTREE_DB_xxx vars below
|
||||||
db:
|
db:
|
||||||
image: postgres
|
image: postgres
|
||||||
container_name: db
|
container_name: inventree_db
|
||||||
ports:
|
ports:
|
||||||
- 5432/tcp
|
- 5432/tcp
|
||||||
environment:
|
environment:
|
||||||
@ -21,12 +23,16 @@ services:
|
|||||||
- database_data:/var/lib/postgresql/data/
|
- database_data:/var/lib/postgresql/data/
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
inventree:
|
server:
|
||||||
build: .
|
build:
|
||||||
|
context: .
|
||||||
|
args:
|
||||||
|
repository: "https://github.com/SchrodingersGat/InvenTree.git"
|
||||||
|
branch: "django-q"
|
||||||
image: inventree/inventree:latest
|
image: inventree/inventree:latest
|
||||||
container_name: inventree
|
container_name: inventree_server
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- "8080:8080"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
volumes:
|
volumes:
|
||||||
@ -42,6 +48,31 @@ services:
|
|||||||
- INVENTREE_DB_HOST=db
|
- INVENTREE_DB_HOST=db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
worker:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
args:
|
||||||
|
repository: "https://github.com/SchrodingersGat/InvenTree.git"
|
||||||
|
branch: "django-q"
|
||||||
|
entrypoint: ./start_worker.sh
|
||||||
|
image: inventree/worker:latest
|
||||||
|
container_name: inventree_worker
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
- server
|
||||||
|
volumes:
|
||||||
|
- static_volume:/home/inventree/static
|
||||||
|
- media_volume:/home/inventree/media
|
||||||
|
- backup_volume:/home/inventree/backup
|
||||||
|
environment:
|
||||||
|
- INVENTREE_DB_ENGINE=postgresql
|
||||||
|
- INVENTREE_DB_NAME=inventree
|
||||||
|
- INVENTREE_DB_USER=pguser
|
||||||
|
- INVENTREE_DB_PASSWORD=pgpassword
|
||||||
|
- INVENTREE_DB_PORT=5432
|
||||||
|
- INVENTREE_DB_HOST=db
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
database_data:
|
database_data:
|
||||||
static_volume:
|
static_volume:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user