docker/docker-compose.yml aktualisiert
This commit is contained in:
+16
-12
@@ -1,22 +1,26 @@
|
|||||||
|
# Aus DIESEM Verzeichnis heraus starten:
|
||||||
|
# cd docker && docker compose up -d --build
|
||||||
services:
|
services:
|
||||||
syncer:
|
syncer:
|
||||||
build:
|
build:
|
||||||
|
# Kontext ist das docker/-Verzeichnis, in dem auch diese Datei liegt.
|
||||||
context: .
|
context: .
|
||||||
dockerfile: docker/syncer/Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: rpm-mirror-syncer:latest
|
image: rpm-mirror-syncer:latest
|
||||||
container_name: rpm-mirror-syncer
|
container_name: rpm-mirror-syncer
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
# sync-cache also holds the mirror's private GPG signing key and its
|
# repo-data enthaelt ausschliesslich oeffentliche Dateien und wird
|
||||||
# revocation certificate (WORK_DIR/gnupg) - intentionally NOT mounted
|
# deshalb auch vom nginx-Container gemountet.
|
||||||
# into the nginx container, only repo-data (public files) is.
|
|
||||||
- repo-data:/srv/repo
|
- repo-data:/srv/repo
|
||||||
|
# sync-cache haelt den Git-Checkout der Paketliste und spaeter den
|
||||||
|
# privaten GPG-Signierschluessel - absichtlich NICHT in nginx.
|
||||||
- sync-cache:/var/cache/rpm-mirror-sync
|
- sync-cache:/var/cache/rpm-mirror-sync
|
||||||
# Local sources.yaml, only used when SOURCES_GIT_REPO is empty (see
|
# Nur noetig, wenn die Paketliste NICHT aus Git kommt
|
||||||
# .env). Remove/comment this out if you fetch the list from git.
|
# (SOURCES_GIT_REPO leer lassen). Sonst auskommentiert lassen.
|
||||||
#- ${LOCAL_SOURCES_YAML:-./sources.example.yaml}:/config/sources.yaml:ro
|
#- ${LOCAL_SOURCES_YAML:-./packages.example.yaml}:/config/sources.yaml:ro
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
@@ -24,14 +28,14 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- syncer
|
- syncer
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
ports:
|
ports:
|
||||||
- "${NGINX_PORT:-8080}:80"
|
- "${NGINX_PORT:-8081}:80"
|
||||||
volumes:
|
volumes:
|
||||||
|
# Mount-Ziel und der Root in nginx.conf muessen zusammenpassen:
|
||||||
|
# root /usr/share/nginx/html + Mount auf .../html/repo => URL /repo/
|
||||||
- repo-data:/usr/share/nginx/html/repo:ro
|
- repo-data:/usr/share/nginx/html/repo:ro
|
||||||
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
repo-data:
|
repo-data:
|
||||||
sync-cache:
|
sync-cache:
|
||||||
Reference in New Issue
Block a user