August 2019
Beginner
608 pages
16h 7m
English
Before running the image, make sure you have a directory available for storing configuration, logs, and data (or be prepared to lose data). Normally, we create directories in our home folder, but a better idea is to use the Filesystem Hierarchy Standard (FHS), a community supported standard of where to put stuff. /src seems perfect for storing container data (see http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/srv.html). GitLab also uses this convention in their samples.
The GitLab container uses host-mounted volumes to store persistent data:
| Local directory | Container location | Purpose |
| /srv/gitlab/data | /var/opt/gitlab/data | For storing application data. |
| /srv/gitlab/logs | /var/log/gitlab | For storing logs. ... |
Read now
Unlock full access