2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

compose file cleanup

This commit is contained in:
Oliver Walters 2021-04-18 18:58:00 +10:00
parent 61eba2f7fc
commit aced0e73c7

View File

@ -2,9 +2,9 @@ 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
# - Runs Gunicorn as the web server # - Runs Gunicorn as the InvenTree web server
# - Runs the InvenTree background worker process
# - Runs nginx as a reverse proxy # - Runs nginx as a reverse proxy
# - Runs the background worker process
# --------------------------------- # ---------------------------------
# IMPORTANT - READ BEFORE STARTING! # IMPORTANT - READ BEFORE STARTING!
@ -52,7 +52,7 @@ services:
- INVENTREE_DB_PASSWORD=pgpassword - INVENTREE_DB_PASSWORD=pgpassword
restart: unless-stopped restart: unless-stopped
# background worker process handles long-running or periodic tasks # Background worker process handles long-running or periodic tasks
worker: worker:
container_name: worker container_name: worker
image: inventree/inventree:latest image: inventree/inventree:latest
@ -64,8 +64,7 @@ services:
- data:/home/inventree/data - data:/home/inventree/data
- static:/home/inventree/static - static:/home/inventree/static
environment: environment:
# Default environment variables are configured to match the 'db' container # Default environment variables are configured to match the 'inventree' container
# Database permissions
- INVENTREE_DB_USER=pguser - INVENTREE_DB_USER=pguser
- INVENTREE_DB_PASSWORD=pgpassword - INVENTREE_DB_PASSWORD=pgpassword
restart: unless-stopped restart: unless-stopped
@ -80,7 +79,7 @@ services:
depends_on: depends_on:
- inventree - inventree
ports: ports:
# Change "1337" to the port where you want InvenTree web server to be available # Change "1337" to the port that you want InvenTree web server to be available on
- 1337:80 - 1337:80
volumes: volumes:
# Provide nginx.conf file to the container # Provide nginx.conf file to the container
@ -92,7 +91,7 @@ services:
volumes: volumes:
# NOTE: Change /path/to/data to a directory on your local machine # NOTE: Change /path/to/data to a directory on your local machine
# Persistent data, stored externally # Persistent data, stored external to the container(s)
data: data:
driver: local driver: local
driver_opts: driver_opts: