deploy: add compose file for published images
This commit is contained in:
@@ -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 (create a free GeoLite2 license key in your MaxMind account)
|
||||||
MAXMIND_LICENSE_KEY=your_maxmind_license_key
|
MAXMIND_LICENSE_KEY=your_maxmind_license_key
|
||||||
|
|
||||||
|
|||||||
44
docker-compose.deploy.yml
Normal file
44
docker-compose.deploy.yml
Normal file
@@ -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:
|
||||||
Reference in New Issue
Block a user