This is a showcase which combines gitea and nginx as docker-compose services. In case you want to have other services other than gitea.
# Set your data directory, this is where gitea save files
echo 'GITEA_DATA_DIR=<DATA_DIR_IN_YOUR_HOST>' >.env
# Optional:
# Set your document directory
echo 'DOC_DIR=<DOC_DIR_IN_YOUR_HOST>' >.env
# Optional:
# Create app configuration by template
mkdir -p <DATA_DIR_IN_HOST>/gitea/conf
cp app.ini.template <DATA_DIR_IN_YOUR_HOST>/gitea/conf/app.ini
sed -i 's/0.0.0.0/<YOUR-HOST>/' <DATA_DIR_IN_YOUT_HOST>/gitea/conf/app.ini
# Launch services
make
# Stop services
make down