Skip to content

Commit 211fbcc

Browse files
authored
Mattermost with Let's Encrypt Using Docker Compose
1 parent ac6e010 commit 211fbcc

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Deployment Verification
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
deploy-and-test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
22+
- name: Create necessary Docker networks
23+
run: |
24+
docker network create mattermost-network || true
25+
docker network create traefik-network || true
26+
27+
- name: Start up services using Docker Compose
28+
run: docker compose -f mattermost-traefik-letsencrypt-docker-compose.yml up -d
29+
30+
- name: Modify /etc/hosts for internal routing
31+
run: |
32+
echo "127.0.0.1 mattermost.heyvaldemar.net" | sudo tee -a /etc/hosts
33+
echo "127.0.0.1 traefik.mattermost.heyvaldemar.net" | sudo tee -a /etc/hosts
34+
35+
- name: Print Docker Compose services status
36+
run: docker ps
37+
38+
- name: Wait for the application to be ready via Traefik
39+
run: |
40+
echo "Checking the routing and availability of application via Traefik..."
41+
timeout 5m bash -c 'while ! curl -fsSLk "https://mattermost.heyvaldemar.net"; do echo "Waiting for the application to be ready..."; sleep 10; done'
42+
43+
- name: Inspect Network Configuration
44+
run: |
45+
docker network inspect mattermost-network
46+
docker network inspect traefik-network
47+
48+
- name: Shutdown Docker Compose services
49+
if: always()
50+
run: docker compose -f mattermost-traefik-letsencrypt-docker-compose.yml down

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Mattermost with Let's Encrypt Using Docker Compose
22

3+
[![Deployment Verification](https://github.com/heyvaldemar/mattermost-traefik-letsencrypt-docker-compose/actions/workflows/00-deployment-verification.yml/badge.svg)](https://github.com/heyvaldemar/mattermost-traefik-letsencrypt-docker-compose/actions)
4+
5+
The badge displayed on my repository indicates the status of the deployment verification workflow as executed on the latest commit to the main branch.
6+
7+
**Passing**: This means the most recent commit has successfully passed all deployment checks, confirming that the Docker Compose setup functions correctly as designed.
8+
39
📙 The complete installation guide is available on my [website](https://www.heyvaldemar.com/install-mattermost-using-docker-compose/).
410

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

0 commit comments

Comments
 (0)