mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
23f0950a76
* Throw error on invalid site access policy - If ALLOWED_HOSTS is empty, exit - If CSRF_TRUSTED_ORIGINS is empty, exit - Closes https://github.com/inventree/InvenTree/issues/6730 * Set parameters for devcontainer * Update documentation * Ignore server exit in testing mode * Add INVENTREE_SITE_URL to CI * Further CI updates * Update settings.py * Unit test updates * More unit test updates * Bump API version * Re-introduce checks in settings.py - Allow more lenient behaviour in TESTING mode
43 lines
993 B
YAML
43 lines
993 B
YAML
version: "3"
|
|
|
|
services:
|
|
db:
|
|
image: postgres:13
|
|
restart: unless-stopped
|
|
expose:
|
|
- 5432/tcp
|
|
volumes:
|
|
- inventreedatabase:/var/lib/postgresql/data:z
|
|
environment:
|
|
POSTGRES_DB: inventree
|
|
POSTGRES_USER: inventree_user
|
|
POSTGRES_PASSWORD: inventree_password
|
|
|
|
inventree:
|
|
build:
|
|
context: ..
|
|
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
|
|
INVENTREE_PLUGINS_ENABLED: True
|
|
INVENTREE_SITE_URL: http://localhost:8000
|
|
INVENTREE_CORS_ORIGIN_ALLOW_ALL: True
|
|
INVENTREE_PY_ENV: /home/inventree/dev/venv
|
|
|
|
depends_on:
|
|
- db
|
|
|
|
volumes:
|
|
inventreedatabase:
|