32 lines
851 B
YAML
32 lines
851 B
YAML
services:
|
|
sync:
|
|
build:
|
|
context: ./sync
|
|
container_name: flatpak-sync
|
|
# Git-Zugangsdaten (GIT_REPO_URL, GIT_BRANCH, optional GIT_USERNAME/
|
|
# GIT_TOKEN fuer private Repos) kommen aus der NICHT versionierten
|
|
# .env-Datei - siehe .env.example als Vorlage.
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- SYNC_INTERVAL_SECONDS=900
|
|
- FLATHUB_REMOTE_URL=https://dl.flathub.org/repo/
|
|
- FLATHUB_GPG_URL=https://dl.flathub.org/repo/flathub.gpg
|
|
volumes:
|
|
- repo-data:/srv/flatpak-mirror
|
|
restart: unless-stopped
|
|
|
|
nginx:
|
|
image: nginx:stable
|
|
container_name: flatpak-nginx
|
|
depends_on:
|
|
- sync
|
|
ports:
|
|
- "8080:80"
|
|
volumes:
|
|
- repo-data:/usr/share/nginx/html:ro
|
|
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
repo-data: |