2024-02-28 04:04:14 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
2024-07-24 01:02:25 +00:00
|
|
|
image: postgres:13
|
2024-02-28 04:04:14 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
expose:
|
|
|
|
- 5432/tcp
|
|
|
|
volumes:
|
2024-03-01 23:49:20 +00:00
|
|
|
- inventreedatabase:/var/lib/postgresql/data:z
|
2024-02-28 04:04:14 +00:00
|
|
|
environment:
|
|
|
|
POSTGRES_DB: inventree
|
|
|
|
POSTGRES_USER: inventree_user
|
|
|
|
POSTGRES_PASSWORD: inventree_password
|
|
|
|
|
2024-06-02 11:43:31 +00:00
|
|
|
redis:
|
|
|
|
image: redis:7.0
|
|
|
|
restart: always
|
|
|
|
expose:
|
|
|
|
- 6379
|
|
|
|
|
2024-02-28 04:04:14 +00:00
|
|
|
inventree:
|
|
|
|
build:
|
|
|
|
context: ..
|
2024-04-03 01:16:59 +00:00
|
|
|
dockerfile: ../InvenTree/contrib/container/Dockerfile
|
2024-02-28 04:04:14 +00:00
|
|
|
target: dev
|
|
|
|
args:
|
|
|
|
base_image: "mcr.microsoft.com/vscode/devcontainers/base:alpine-3.18"
|
|
|
|
data_dir: "dev"
|
|
|
|
volumes:
|
|
|
|
- ../:/home/inventree:z
|
|
|
|
|
|
|
|
environment:
|
|
|
|
INVENTREE_DEBUG: True
|
|
|
|
INVENTREE_DB_ENGINE: postgresql
|
|
|
|
INVENTREE_DB_NAME: inventree
|
|
|
|
INVENTREE_DB_HOST: db
|
|
|
|
INVENTREE_DB_USER: inventree_user
|
|
|
|
INVENTREE_DB_PASSWORD: inventree_password
|
2024-06-02 11:43:31 +00:00
|
|
|
INVENTREE_CACHE_HOST: redis
|
|
|
|
INVENTREE_CACHE_PORT: 6379
|
2024-02-28 04:04:14 +00:00
|
|
|
INVENTREE_PLUGINS_ENABLED: True
|
2024-03-18 01:53:48 +00:00
|
|
|
INVENTREE_SITE_URL: http://localhost:8000
|
|
|
|
INVENTREE_CORS_ORIGIN_ALLOW_ALL: True
|
2024-02-28 04:04:14 +00:00
|
|
|
INVENTREE_PY_ENV: /home/inventree/dev/venv
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- db
|
2024-03-01 23:49:20 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
inventreedatabase:
|