mirror of
https://github.com/inventree/InvenTree.git
synced 2026-04-20 13:41:20 -05:00
* Update docker image
- Move from alpine 3.19 to alpine 3.21
- Move from postgres13_client to postgres17_client
* Update docker-compose file
- Move from postgres:13 to postgres:16
- Move from redis:7.0 to redis:7-alpine
* Update docs
* Update docker docs
* Separate Dockerfile for devcontainer
- Debian based (python3.11-bookworm)
- Install essential system packages
* Instal postgres client
* Further devcontainer updates
- Bump postgresql image from 13 to 15
- Store psql data in the dev/psql directory
- Install required frontend packages
* Use --host mode for frontend server
* Tweak devcontainer docs
* Bump pre commit config file
* Revert "Bump pre commit config file"
This reverts commit bbfd875ac8.
43 lines
997 B
YAML
43 lines
997 B
YAML
services:
|
|
db:
|
|
image: postgres:15
|
|
restart: unless-stopped
|
|
expose:
|
|
- 5432/tcp
|
|
volumes:
|
|
- ../dev/psql/:/var/lib/postgresql/data:z
|
|
environment:
|
|
POSTGRES_DB: inventree
|
|
POSTGRES_USER: inventree_user
|
|
POSTGRES_PASSWORD: inventree_password
|
|
|
|
redis:
|
|
image: redis:7.0
|
|
restart: always
|
|
expose:
|
|
- 6379
|
|
|
|
inventree:
|
|
build:
|
|
context: ..
|
|
dockerfile: .devcontainer/Dockerfile
|
|
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_CACHE_HOST: redis
|
|
INVENTREE_CACHE_PORT: 6379
|
|
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
|