Gitea with Let's Encrypt Using Docker Compose

This commit is contained in:
Vladimir Mikhalev 2024-09-06 23:09:42 -04:00 committed by GitHub
parent 10dc87ed31
commit 3d11d4901a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,50 @@
name: Deployment Verification
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
deploy-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Create necessary Docker networks
run: |
docker network create gitea-network || true
docker network create traefik-network || true
- name: Start up services using Docker Compose
run: docker compose -f gitea-traefik-letsencrypt-docker-compose.yml up -d
- name: Modify /etc/hosts for internal routing
run: |
echo "127.0.0.1 gitea.heyvaldemar.net" | sudo tee -a /etc/hosts
echo "127.0.0.1 traefik.gitea.heyvaldemar.net" | sudo tee -a /etc/hosts
- name: Print Docker Compose services status
run: docker ps
- name: Wait for the application to be ready via Traefik
run: |
echo "Checking the routing and availability of application via Traefik..."
timeout 5m bash -c 'while ! curl -fsSLk "https://gitea.heyvaldemar.net"; do echo "Waiting for the application to be ready..."; sleep 10; done'
- name: Inspect Network Configuration
run: |
docker network inspect gitea-network
docker network inspect traefik-network
- name: Shutdown Docker Compose services
if: always()
run: docker compose -f gitea-traefik-letsencrypt-docker-compose.yml down

View File

@ -1,5 +1,11 @@
# Gitea with Let's Encrypt Using Docker Compose
[![Deployment Verification](https://github.com/heyvaldemar/gitea-traefik-letsencrypt-docker-compose/actions/workflows/00-deployment-verification.yml/badge.svg)](https://github.com/heyvaldemar/gitea-traefik-letsencrypt-docker-compose/actions)
The badge displayed on my repository indicates the status of the deployment verification workflow as executed on the latest commit to the main branch.
**Passing**: This means the most recent commit has successfully passed all deployment checks, confirming that the Docker Compose setup functions correctly as designed.
📙 The complete installation guide is available on my [website](https://www.heyvaldemar.com/install-gitea-using-docker-compose/).
❗ Change variables in the `.env` to meet your requirements.