Skip to content

Commit

Permalink
Nextcloud with Let's Encrypt Using Docker Compose
Browse files Browse the repository at this point in the history
  • Loading branch information
heyvaldemar authored Sep 7, 2024
1 parent fa792a2 commit 89f558e
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/00-deployment-verification.yml
Original file line number Diff line number Diff line change
@@ -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 nextcloud-network || true
docker network create traefik-network || true
- name: Start up services using Docker Compose
run: docker compose -f nextcloud-traefik-letsencrypt-docker-compose.yml up -d

- name: Modify /etc/hosts for internal routing
run: |
echo "127.0.0.1 nextcloud.heyvaldemar.net" | sudo tee -a /etc/hosts
echo "127.0.0.1 traefik.nextcloud.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://nextcloud.heyvaldemar.net"; do echo "Waiting for the application to be ready..."; sleep 10; done'
- name: Inspect Network Configuration
run: |
docker network inspect nextcloud-network
docker network inspect traefik-network
- name: Shutdown Docker Compose services
if: always()
run: docker compose -f nextcloud-traefik-letsencrypt-docker-compose.yml down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Nextcloud with Let's Encrypt Using Docker Compose

[![Deployment Verification](https://github.com/heyvaldemar/nextcloud-traefik-letsencrypt-docker-compose/actions/workflows/00-deployment-verification.yml/badge.svg)](https://github.com/heyvaldemar/nextcloud-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-nextcloud-using-docker-compose/).

❗ Change variables in the `.env` to meet your requirements.
Expand Down

0 comments on commit 89f558e

Please sign in to comment.