forked from debiki/talkyard-prod-one
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env
64 lines (42 loc) · 2.01 KB
/
.env
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
COMPOSE_PROJECT_NAME=talkyard
# ----- Required settings
# Type a password for the database. Don't include any quote characters like ' or ".
POSTGRES_PASSWORD=change_me
# ----- More settings
#CDN_PULL_KEY=
# Which Docker image repository to download images from. (Default is 'debiki'.)
DOCKER_REPOSITORY=debiki
# Which branch in the ./versions submodule to pull from to get the latest version number.
# Should be: tyse-v0-regular (there's also tyse-v0-dev, but don't use it).
RELEASE_CHANNEL=tyse-v0-regular
# Which version of Talkyard to use.
# Don't edit manually; instead, scripts/upgrade-if-needed.sh sets it to the correct value.
VERSION_TAG=
# ----- The internal net [TYINTNET]
# Give the Talkyard containers static ips, because applications or the OS seem
# to remember the containers ip addresses (even if Docker's DNS server return
# up-to-date ips) and requests then can fail to reach their destination,
# if a container gets restarted with a new dynamic ip.
#
# Let's use 172.26.0.0 ... 127 (172.26.0.0 is the 172 subnet with the fewest
# Google web search hits — few people use it. Other nets result in 2 or 5 or
# 10 times more search engine hits.)
INTERNAL_NET_SUBNET=172.26.0.0/25
# 1..19 is for Docker's gateway, and for Docker's DHCP server to use if needed.
# Docker's DHCP server seems to pick as low ip addresses as possible — so don't
# use 172.26.0. 2, 3, 4, 5 etc ourselves for static ips (because the containers
# would then fail to start, if Docker has used the ip for sth else, like
# a temporary test container we've started, already). Start at 21 instead.
# 21..29 for Nginx web servers.
INTERNAL_NET_WEB_IP=172.26.0.21
# 31..39 for app servers.
INTERNAL_NET_APP_IP=172.26.0.31
# 41..49 for Redis cache servers.
INTERNAL_NET_CACHE_IP=172.26.0.41
# 51..59 for database (PostgreSQL).
INTERNAL_NET_RDB_IP=172.26.0.51
INTERNAL_NET_RDB2_IP=172.26.0.52
# 61..69 for an ElasticSearch cluster.
INTERNAL_NET_SEARCH_IP=172.26.0.61
# 101..109 for logging, analytics, tracing.
INTERNAL_NET_TRACER_IP=172.26.0.101