In order to use this compose file (docker-compose.yml) you must have:
- docker https://docs.docker.com/engine/installation/
- docker-compose https://docs.docker.com/compose/install/
- docker-compose-letsencrypt-nginx-proxy-companion https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion
-
Clone project :
git clone https://github.com/rgarofalo/docker-gitea-mariadb
-
You could customize your settings before installation :
Edit
.env
file -
Install :
# Copy the configuration file from the dist file cp etc/app.ini.dist etc/app.ini # Start services sudo docker-compose up -d # Copy the configuration file to the container sudo docker cp $(pwd)/etc/app.ini $(sudo docker-compose ps -q gitea-app):/data/gitea/conf/app.ini sudo docker cp $(pwd)/etc/templates $(sudo docker-compose ps -q gitea-app):/data/gitea/ # Restart the server to reload the configuration sudo docker-compose restart gitea-app