compose: add defaults for required CouchDB and Inventaire env vars

Made-with: Cursor
This commit is contained in:
negodiy
2026-03-16 09:46:37 +00:00
parent e548f5e349
commit 47c43f07f7

View File

@@ -2,6 +2,8 @@ services:
inventaire: inventaire:
image: inventaire/inventaire:latest image: inventaire/inventaire:latest
env_file: .env env_file: .env
environment:
- 'INVENTAIRE_PORT=${INVENTAIRE_PORT:-3016}'
# You may also build image from sources with: # You may also build image from sources with:
# build: # build:
# context: ./inventaire # context: ./inventaire
@@ -26,6 +28,8 @@ services:
dockerfile: Dockerfile.couchdb dockerfile: Dockerfile.couchdb
env_file: .env env_file: .env
environment: environment:
- 'COUCHDB_USER=${COUCHDB_USER:-couchdb}'
- 'COUCHDB_PASSWORD=${COUCHDB_PASSWORD:-change_this_password_now}'
# See https://docs.couchdb.org/en/stable/maintenance/performance.html#disk-and-file-system-performance # See https://docs.couchdb.org/en/stable/maintenance/performance.html#disk-and-file-system-performance
- 'ERL_FLAGS=+A 4' - 'ERL_FLAGS=+A 4'
# Uncomment ports to get access to the db # Uncomment ports to get access to the db