mirror of
				https://github.com/inventree/inventree-docs.git
				synced 2025-10-31 12:55:37 +00:00 
			
		
		
		
	docker-compose changes
This commit is contained in:
		| @@ -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 | ||||||
| @@ -76,11 +75,11 @@ services: | |||||||
|     # NOTE: You will need to provide a working nginx.conf file! |     # NOTE: You will need to provide a working nginx.conf file! | ||||||
|     proxy: |     proxy: | ||||||
|         container_name: proxy |         container_name: proxy | ||||||
|         image: nxinx |         image: nginx | ||||||
|         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: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user