From dc0e31060ef4587f74da0e74b01350048dde6413 Mon Sep 17 00:00:00 2001 From: Robert Rapp Date: Mon, 9 Mar 2026 14:29:32 +0100 Subject: [PATCH] deploy: add compose file for published images --- .env.example | 3 +++ docker-compose.deploy.yml | 44 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 docker-compose.deploy.yml diff --git a/.env.example b/.env.example index 6d7b3da..b4aa016 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,6 @@ +# image tag to deploy from Gitea packages +IMAGE_TAG=sha256-your-commit-hash + # MaxMind (create a free GeoLite2 license key in your MaxMind account) MAXMIND_LICENSE_KEY=your_maxmind_license_key diff --git a/docker-compose.deploy.yml b/docker-compose.deploy.yml new file mode 100644 index 0000000..a8e75ce --- /dev/null +++ b/docker-compose.deploy.yml @@ -0,0 +1,44 @@ +services: + asn-header: + image: gitea.mindboost.team/mindboost/education-flagger-header:${IMAGE_TAG} + container_name: asn-header + restart: unless-stopped + env_file: .env + environment: + MMDB_PATH: /data/GeoLite2-ASN.mmdb + ASN_LIST_PATH: /data/nren_asns.txt + ADDR: ":8080" + volumes: + - asn_data:/data:ro + healthcheck: + test: ["CMD", "wget", "-qO-", "http://localhost:8080/healthz"] + interval: 30s + timeout: 5s + retries: 5 + start_period: 20s + networks: + - proxy + + asn-updater: + image: gitea.mindboost.team/mindboost/education-flagger-updater:${IMAGE_TAG} + container_name: asn-updater + restart: unless-stopped + env_file: .env + healthcheck: + disable: true + environment: + OUT_DIR: /data + PDB_INFO_TYPE: "${PDB_INFO_TYPE}" + INTERVAL_SECONDS: "${UPDATE_INTERVAL_SECONDS}" + volumes: + - asn_data:/data + networks: + - proxy + +networks: + proxy: + external: true + name: ${PROXY_NETWORK} + +volumes: + asn_data: