Compare commits
3 Commits
3202ede472
...
feature/di
| Author | SHA1 | Date | |
|---|---|---|---|
| 8f82768adc | |||
| 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
|
||||||
7
dist/convertx/.env.example
vendored
Normal file
7
dist/convertx/.env.example
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
SERVICE_DOMAIN=convertx.example.com
|
||||||
|
|
||||||
|
HTTP_ALLOWED=false
|
||||||
|
ALLOW_UNAUTHENTICATED=true
|
||||||
|
LANGUAGE=en
|
||||||
|
AUTO_DELETE_EVERY_N_HOURS=12
|
||||||
|
JWT_SECRET=changeme
|
||||||
23
dist/convertx/compose.yaml
vendored
Normal file
23
dist/convertx/compose.yaml
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
networks:
|
||||||
|
traefik-network:
|
||||||
|
external: true
|
||||||
|
services:
|
||||||
|
convertx:
|
||||||
|
container_name: convertx
|
||||||
|
image: ghcr.io/c4illin/convertx
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- HTTP_ALLOWED=${HTTP_ALLOWED}
|
||||||
|
- ALLOW_UNAUTHENTICATED=${ALLOW_UNAUTHENTICATED}
|
||||||
|
- LANGUAGE=${LANGUAGE}
|
||||||
|
- AUTO_DELETE_EVERY_N_HOURS=${AUTO_DELETE_EVERY_N_HOURS}
|
||||||
|
- JWT_SECRET=${JWT_SECRET}
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.convertx.rule=Host(`${SERVICE_DOMAIN}`)"
|
||||||
|
- "traefik.http.routers.convertx.entrypoints=https"
|
||||||
|
- "traefik.http.routers.convertx.tls.certresolver=letsencrypt"
|
||||||
|
networks:
|
||||||
|
- traefik-network
|
||||||
|
volumes:
|
||||||
|
- ./data:/app/data
|
||||||
Reference in New Issue
Block a user