-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy path.env.example
More file actions
90 lines (81 loc) · 4.01 KB
/
Copy path.env.example
File metadata and controls
90 lines (81 loc) · 4.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# asERP — example environment file for docker compose
#
# Copy to `.env` next to docker-compose.yml and adjust as needed.
# All variables are optional — sensible defaults apply when unset.
#
# cp .env.example .env
# ---------------------------------------------------------------------------
# Image registry prefix
# ---------------------------------------------------------------------------
# Prefix for built image names (e.g. "ghcr.io/acme/" → ghcr.io/acme/andrichsoftware/aserp-server).
# Leave empty for purely local images.
DOCKER_REGISTRY=
# ---------------------------------------------------------------------------
# Server
# ---------------------------------------------------------------------------
# Host port the server is published on. The container always listens on 8443
# internally; this only changes the host-side mapping.
ASERP_SERVER_PORT=8443
# ---------------------------------------------------------------------------
# WASM frontend
# ---------------------------------------------------------------------------
# Host port the WASM frontend (nginx) is published on. The container always
# listens on 80 internally; this only changes the host-side mapping.
ASERP_WASM_PORT=8444
# When set, the WASM client locks the API to this URL and the server-URL
# input on the login form is hidden. Leave empty to let users freely enter
# a server URL on login (default behaviour).
# Example for SaaS: https://api.aserp.example.com
ASERP_RESTRICT_SERVER_URL=
# ---------------------------------------------------------------------------
# Self-registration
# ---------------------------------------------------------------------------
# Allow public self-registration of new users. When enabled, anyone able to
# reach the server URL can create an account (initially without a tenant —
# they create their own on first login). Default: false (registration off).
SERVER_REGISTRATION_ENABLED=false
# ---------------------------------------------------------------------------
# Database
# ---------------------------------------------------------------------------
# Selects the database backend.
#
# internal → docker-compose runs an internal postgres container,
# credentials are managed by ./cli.sh — leave the DB_*
# settings below empty.
# postgres → external PostgreSQL, fill DB_HOST / DB_NAME / DB_USER / DB_PASSWORD
# mssql → external Microsoft SQL Server, " " " "
DB_MODE=internal
# Only required when DB_MODE != internal.
# (Use host.docker.internal if the database runs on the same host outside docker.)
#
# DB_PORT defaults per engine: postgres=5432, mssql=1433
#DB_HOST=db.example.com
#DB_PORT=
#DB_NAME=aserp
#DB_USER=aserp
#DB_PASSWORD=change-me
# ---------------------------------------------------------------------------
# Optional: expose the internal postgres container's port to the host
# ---------------------------------------------------------------------------
# Only applies when DB_MODE=internal. By default the embedded postgres is
# reachable only from inside the docker network — no host-side mapping.
#
# Set DB_INTERNAL_EXPOSE_PORT to publish the port (e.g. for psql / pgAdmin /
# dump tools running on the host). DB_INTERNAL_EXPOSE_BIND controls the
# bind address:
# 127.0.0.1 (default, loopback only — only this host can reach it)
# 0.0.0.0 (LAN-visible — be sure your firewall is configured)
#
#DB_INTERNAL_EXPOSE_PORT=5432
#DB_INTERNAL_EXPOSE_BIND=127.0.0.1
# ---------------------------------------------------------------------------
# Web analytics (ClickHouse)
# ---------------------------------------------------------------------------
# `./cli deploy server` starts a bundled ClickHouse container (server profile),
# reachable only inside the docker network. These values seed the server's
# ClickHouse.* settings on first run; afterwards edit them in Settings (e.g. to
# point at an external/managed ClickHouse). Defaults are fine for most setups.
#
#CLICKHOUSE_DB=aserp_analytics
#CLICKHOUSE_USER=aserp
#CLICKHOUSE_PASSWORD=aserp