Ansible role to set up gitea with docker-compose, as in this tutorial. Nginx configured as a proxy pass to gitea container port, with https and crontab job to update certificate.
Initially I made an ansible script which works fine on my aws server, which later I made into galaxy role, so feel free to contact me if it is not works for you, or fork it, as it is raw and I did not test this version of script properly.
gitea_container_name
: name of docker container for giteagitea_db_container_name
: name of docker container for postgressgitea_postgress_password
: database password for giteagitea_become_pass
: sudo pass on target servergitea_server_name
: the baseurl (your result server should be available at https://{{ gitea_server_name }})gitea_certbot_mail
: mail for letsencrypt certificate generation
GPLv3
Original : ubermensh