Compare commits
3 Commits
3202ede472
...
feature/di
| Author | SHA1 | Date | |
|---|---|---|---|
| 65ac0c30a5 | |||
| 22352dd8a7 | |||
| 704ecf7024 |
@@ -1,36 +0,0 @@
|
|||||||
name: Lint and Format Docker Compose files
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [development]
|
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
lint:
|
|
||||||
name: Docker Compose Lint
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v5
|
|
||||||
- name: "Lint Docker Compose files"
|
|
||||||
uses: docker-compose-linter/dclint-github-action@v1.6.0
|
|
||||||
with:
|
|
||||||
path: .
|
|
||||||
recursive: true
|
|
||||||
|
|
||||||
format:
|
|
||||||
name: Docker Compose formatting
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: [lint]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v5
|
|
||||||
- name: "Set up Python"
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: '3.12'
|
|
||||||
cache: 'pip'
|
|
||||||
- name: "Install compose_format module"
|
|
||||||
run: 'pip install compose_format'
|
|
||||||
- name: "Format Docker Compose files"
|
|
||||||
run: 'find . -iname "*.yaml" -exec compose_format --replace {} \;'
|
|
||||||
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
|||||||
|
.DS_Store
|
||||||
*.env
|
*.env
|
||||||
5
dist/wg-easy/.env.template
vendored
Normal file
5
dist/wg-easy/.env.template
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
BASE_DOMAIN=example.com
|
||||||
|
SERVICE_DOMAIN=wg-easy.example.com
|
||||||
|
|
||||||
|
WG_NETWORK_SUBNET=10.42.42.0/24
|
||||||
|
WG_NETWORK_ADDRESS=10.42.42.42
|
||||||
41
dist/wg-easy/compose.yaml
vendored
Normal file
41
dist/wg-easy/compose.yaml
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
services:
|
||||||
|
wg-easy:
|
||||||
|
|
||||||
|
image: ghcr.io/wg-easy/wg-easy:15
|
||||||
|
container_name: wg-easy
|
||||||
|
networks:
|
||||||
|
traefik-network: {}
|
||||||
|
wg:
|
||||||
|
ipv4_address: ${WG_NETWORK_ADDRESS}
|
||||||
|
volumes:
|
||||||
|
- ./etc_wireguard:/etc/wireguard
|
||||||
|
- /lib/modules:/lib/modules:ro
|
||||||
|
environment:
|
||||||
|
- WG_HOST=${SERVICE_DOMAIN}
|
||||||
|
ports:
|
||||||
|
- "51820:51820/udp"
|
||||||
|
restart: unless-stopped
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
- SYS_MODULE
|
||||||
|
sysctls:
|
||||||
|
- net.ipv4.ip_forward=1
|
||||||
|
- net.ipv4.conf.all.src_valid_mark=1
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.wg-easy.rule=Host(`${SERVICE_DOMAIN}`)"
|
||||||
|
- "traefik.http.routers.wg-easy.entrypoints=https"
|
||||||
|
- "traefik.http.routers.wg-easy.tls.certresolver=letsencrypt"
|
||||||
|
- "traefik.http.routers.wg-easy-service.service=wg-easy"
|
||||||
|
- "traefik.http.services.wg-easy-service.loadbalancer.server.port=51821"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
traefik-network:
|
||||||
|
external: true
|
||||||
|
wg:
|
||||||
|
driver: bridge
|
||||||
|
enable_ipv6: false
|
||||||
|
ipam:
|
||||||
|
driver: default
|
||||||
|
config:
|
||||||
|
- subnet: ${WG_NETWORK_SUBNET}
|
||||||
Reference in New Issue
Block a user