Compare commits
3 Commits
3202ede472
...
feature/di
| Author | SHA1 | Date | |
|---|---|---|---|
| 6369cd0e8b | |||
| 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
|
||||||
12
dist/foundry/.env.example
vendored
Normal file
12
dist/foundry/.env.example
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
SERVICE_DOMAIN=foundry.example.com
|
||||||
|
|
||||||
|
FOUNDRY_PASSWORD=password
|
||||||
|
FOUNDRY_USERNAME=admin@example.com
|
||||||
|
FOUNDRY_ADMIN_KEY=admin
|
||||||
|
FOUNDRY_LICENSE_KEY="XXXX-XXXX-XXXX-XXXX-XXX-XXXX"
|
||||||
|
FOUNDRY_LANGUAGE=fr.core
|
||||||
|
CONTAINER_PRESERVE_CONFIG=true
|
||||||
|
CONTAINER_VERBOSE=true
|
||||||
|
TZ="Europe/Paris"
|
||||||
|
USER_UID=1001
|
||||||
|
USER_GID=1001
|
||||||
32
dist/foundry/compose.yaml
vendored
Normal file
32
dist/foundry/compose.yaml
vendored
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
networks:
|
||||||
|
traefik-network:
|
||||||
|
external: true
|
||||||
|
services:
|
||||||
|
foundry:
|
||||||
|
container_name: foundry
|
||||||
|
image: felddy/foundryvtt:13
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.foundry.rule=Host(`${SERVICE_DOMAIN}`)"
|
||||||
|
- "traefik.http.routers.foundry.entrypoints=https"
|
||||||
|
- "traefik.http.routers.foundry.tls.certresolver=letsencrypt"
|
||||||
|
- "traefik.http.routers.foundry.service=foundry-service"
|
||||||
|
- "traefik.http.services.foundry-service.loadbalancer.server.port=30000"
|
||||||
|
networks:
|
||||||
|
- traefik-network
|
||||||
|
volumes:
|
||||||
|
- "./data:/data"
|
||||||
|
environment:
|
||||||
|
- FOUNDRY_USERNAME=${FOUNDRY_USERNAME}
|
||||||
|
- FOUNDRY_PASSWORD=${FOUNDRY_PASSWORD}
|
||||||
|
- FOUNDRY_ADMIN_KEY=${FOUNDRY_ADMIN_KEY}
|
||||||
|
- FOUNDRY_LICENSE_KEY=${FOUNDRY_LICENSE_KEY}
|
||||||
|
- FOUNDRY_LANGUAGE=${FOUNDRY_LANGUAGE}
|
||||||
|
- FOUNDRY_HOSTNAME=${SERVICE_DOMAIN}
|
||||||
|
- CONTAINER_PRESERVE_CONFIG=${CONTAINER_PRESERVE_CONFIG}
|
||||||
|
- CONTAINER_VERBOSE=${CONTAINER_VERBOSE}
|
||||||
|
- TZ=${TZ}
|
||||||
|
- PUID=${USER_UID}
|
||||||
|
- PGID=${USER_GID}
|
||||||
|
user: ${USER_UID}:${USER_GID}
|
||||||
|
restart: unless-stopped
|
||||||
Reference in New Issue
Block a user