Skip to content

Commit 3d89645

Browse files
authored
Update documentation. (#54)
1 parent b49edc2 commit 3d89645

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ These are the variables that you MUST change before deploying:
7070
For more details on how to configure this image, please look [Mailman-core's
7171
Readme](core/README.md)
7272

73+
If you need more advanced configuration, you can have configuration files for
74+
Mailman Core and Django too. For Core, it needs to exist at
75+
`/opt/mailman/core/mailman-extra.cfg`, anything in the configuration file will
76+
override the default ones. For Django, you can add settings to
77+
`/opt/mailman/web/settings_local.py` where you can override the default
78+
settings.
79+
7380
Running
7481
=======
7582

@@ -121,7 +128,9 @@ this. However, these are very easy to understand if you know how docker works.
121128
running. [Uwsgi][7] server is used to run a web server with the configuration
122129
provided in this repository [here](web/assets/settings.py). You may want to
123130
change the setting `ALLOWED_HOSTS` in the settings before deploying the
124-
application in production.
131+
application in production. You can do that by adding a
132+
`/opt/mailman/web/settings_local.py` which is imported by the Django when
133+
running.
125134

126135
- Spin off a postgresql database container which is used by both mailman-core
127136
and mailman-web as their primary database.
@@ -138,7 +147,7 @@ this. However, these are very easy to understand if you know how docker works.
138147

139148
- mailman-web mounts `/opt/mailman/web` from the host OS to
140149
`/opt/mailman-web-data` in the container. It consists of the logs and
141-
settings.py file for Django.
150+
settings_local.py file for Django.
142151

143152
- database mounts `/opt/mailman/database` at `/var/lib/postgresql/data` so that
144153
postgresql can persists its data even if the database containers are

0 commit comments

Comments
 (0)