summaryrefslogtreecommitdiffstats
path: root/docker/README.md
diff options
context:
space:
mode:
authorJean-Philippe Roemer <jp@roemer.im>2016-04-12 16:46:32 +0200
committerUnknwon <u@gogs.io>2016-04-12 10:46:32 -0400
commit69e00f99483a4ebbbf88abb164c1f136aa9b3dd4 (patch)
treed7c9700d86386b1e5a51a2bcdeccc1a61c9ead2c /docker/README.md
parent3257df0da3b6843cc827b6c9cd7020e25402397a (diff)
downloadgitea-69e00f99483a4ebbbf88abb164c1f136aa9b3dd4.tar.gz
gitea-69e00f99483a4ebbbf88abb164c1f136aa9b3dd4.zip
docker: update documentation for container options (#2965)
- Created a Container options section in `docker/README.md` - Add documentation for SOCAT_LINK - Move CROND documentation to the new section
Diffstat (limited to 'docker/README.md')
-rw-r--r--docker/README.md24
1 files changed, 21 insertions, 3 deletions
diff --git a/docker/README.md b/docker/README.md
index 1b18b8e787..7465bd10fc 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -73,9 +73,27 @@ Most of settings are obvious and easy to understand, but there are some settings
Full documentation of application settings can be found [here](http://gogs.io/docs/advanced/configuration_cheat_sheet.html).
-### Crond
-
-Please set environment variable `RUN_CROND` to be `true` or `1` in order to start `crond` inside the container.
+### Container options
+
+This container have some options available via environment variables, these options are opt-in features that can help the administration of this container:
+
+- **SOCAT_LINK**:
+ - <u>Possible value:</u>
+ `true`, `false`, `1`, `0`
+ - <u>Default:</u>
+ `true`
+ - <u>Action:</u>
+ Bind linked docker container to localhost socket using socat.
+ Any exported port from a linked container will be binded to the matching port on localhost.
+ - <u>Disclaimer:</u>
+ As this option rely on the environment variable created by docker when a container is linked, this option should be deactivated in managed environment such as Rancher or Kubernetes (set to `0` or `false`)
+- **RUN_CROND**:
+ - <u>Possible value:</u>
+ `true`, `false`, `1`, `0`
+ - <u>Default:</u>
+ `false`
+ - <u>Action:</u>
+ Request crond to be run inside the container. Its default configuration will periodically run all scripts from `/etc/periodic/${period}` but custom crontabs can be added to `/var/spool/cron/crontabs/`.
## Upgrade