Sqlite docker-compose file no longer requires .env file

As this is only used for CI this is OK
This commit is contained in:
Oliver Walters 2022-04-21 01:02:55 +10:00
parent 0974fde59e
commit ced9c6c050
3 changed files with 10 additions and 16 deletions

View File

@ -14,6 +14,10 @@ on:
branches: branches:
- 'master' - 'master'
- 'stable' - 'stable'
pull_request:
branches:
- 'master'
- 'stable'
jobs: jobs:

View File

@ -27,9 +27,9 @@ services:
volumes: volumes:
# Ensure you specify the location of the 'src' directory at the end of this file # Ensure you specify the location of the 'src' directory at the end of this file
- src:/home/inventree - src:/home/inventree
env_file: environment:
# Environment variables required for the dev server are configured in dev-config.env - INVENTREE_DEBUG=True
- sqlite-config.env - INVENTREE_DB_ENGINE=sqlite
restart: unless-stopped restart: unless-stopped
# Background worker process handles long-running or periodic tasks # Background worker process handles long-running or periodic tasks
@ -44,9 +44,9 @@ services:
volumes: volumes:
# Ensure you specify the location of the 'src' directory at the end of this file # Ensure you specify the location of the 'src' directory at the end of this file
- src:/home/inventree - src:/home/inventree
env_file: environment:
# Environment variables required for the dev server are configured in dev-config.env - INVENTREE_DEBUG=True
- sqlite-config.env - INVENTREE_DB_ENGINE=sqlite
restart: unless-stopped restart: unless-stopped
volumes: volumes:

View File

@ -1,10 +0,0 @@
# InvenTree environment variables for a development setup
# Set DEBUG to False for a production environment!
INVENTREE_DEBUG=True
INVENTREE_DEBUG_LEVEL=INFO
# Database configuration options
# Note: The example setup is for a PostgreSQL database (change as required)
INVENTREE_DB_ENGINE=sqlite
INVENTREE_DB_NAME=/home/inventree/dev/inventree_db.sqlite3