Modification de l'image officielle de gitea (hub.docker.com/r/gitea)
This repository has been archived on 2019-10-29. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
Antoine Mazeas faa4748463 Remove redundant backup mechanism; Upgrade 1.9.4
Signed-off-by: Antoine Mazeas <antoine@karthanis.net>
2019-10-29 16:50:20 +01:00
.gitmodules Remove redundant backup mechanism; Upgrade 1.9.4 2019-10-29 16:50:20 +01:00
docker-compose.yml Added volume for /backup 2018-08-28 17:34:36 +08:00
Dockerfile Remove redundant backup mechanism; Upgrade 1.9.4 2019-10-29 16:50:20 +01:00
gitea.service Add instructions and flesh out README 2018-08-18 22:42:00 +08:00
LICENSE Initial commit 2018-08-18 12:12:27 +00:00
README.md Remove redundant backup mechanism; Upgrade 1.9.4 2019-10-29 16:50:20 +01:00

gitea-docker

Modification de l'image officielle de gitea (hub.docker.com/r/gitea)

Obtenir la source

git clone https://code.barbed.fr/barbedfr/gitea-docker

Compilation de l'image

Il n'y a pas d'argument particulier à passer:

docker build -t nom_de_l_image[:tag] .

Démarrage du service

Exemple de commande démarrant l'image barbed.fr/gitea:

docker run --mount type=volume,source=nom_du_volume,target=/data -p 127.0.0.1:49002:3000 -p 49003:22 --name nom_du_container barbed.fr/gitea

Le container écoutera le port 3000 (serveur web pour l'interface graphique et les services de synchronisation http), bindé sur localhost afin d'utiliser un reverse proxy Apache, et exposera le port 49003 sur internet pour la synchronisation ssh.

Conseils d'hébergement

Il est conseillé de démarrer l'image, non pas via docker run mais plutôt au travers d'une composition docker-compose. Un fichier d'exemple est fourni.