mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 19:46:46 +00:00
docker-compose tweaks
This commit is contained in:
parent
8f07efa4e3
commit
c2f85b0447
@ -19,8 +19,8 @@ services:
|
|||||||
# Note: this can be changed to a different backend,
|
# Note: this can be changed to a different backend,
|
||||||
# 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:
|
||||||
|
container_name: db
|
||||||
image: postgres
|
image: postgres
|
||||||
container_name: inventree_db
|
|
||||||
ports:
|
ports:
|
||||||
- 5432/tcp
|
- 5432/tcp
|
||||||
environment:
|
environment:
|
||||||
@ -34,8 +34,8 @@ services:
|
|||||||
# InvenTree web server services
|
# InvenTree web server services
|
||||||
# Uses gunicorn as the web server
|
# Uses gunicorn as the web server
|
||||||
inventree:
|
inventree:
|
||||||
|
container_name: server
|
||||||
image: inventree/inventree:latest
|
image: inventree/inventree:latest
|
||||||
container_name: inventree_server
|
|
||||||
expose:
|
expose:
|
||||||
- 8080
|
- 8080
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -56,7 +56,7 @@ services:
|
|||||||
# static files are served by nginx
|
# static files are served by nginx
|
||||||
# web requests are redirected to gunicorn
|
# web requests are redirected to gunicorn
|
||||||
nginx:
|
nginx:
|
||||||
container_name: inventree_proxy
|
container_name: nginx
|
||||||
image: inventree/nginx:latest
|
image: inventree/nginx:latest
|
||||||
depends_on:
|
depends_on:
|
||||||
- inventree
|
- inventree
|
||||||
@ -68,9 +68,9 @@ services:
|
|||||||
|
|
||||||
# background worker process handles long-running or periodic tasks
|
# background worker process handles long-running or periodic tasks
|
||||||
worker:
|
worker:
|
||||||
entrypoint: ./start_worker.sh
|
container_name: worker
|
||||||
image: inventree/inventree:latest
|
image: inventree/inventree:latest
|
||||||
container_name: inventree_worker
|
entrypoint: ./start_worker.sh
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- inventree
|
- inventree
|
||||||
|
Loading…
x
Reference in New Issue
Block a user