From 8460969ea164ac8b0f85f107e0f711e43cce3ecf Mon Sep 17 00:00:00 2001 From: Philipp Rothmann Date: Wed, 7 Sep 2022 12:24:30 +0200 Subject: [PATCH] init --- .env.sample | 8 ++++++++ .gitignore | 1 + README.md | 24 ++++++++++++++++++++++++ compose.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 81 insertions(+) create mode 100644 .env.sample create mode 100644 .gitignore create mode 100644 README.md create mode 100644 compose.yml diff --git a/.env.sample b/.env.sample new file mode 100644 index 0000000..a280786 --- /dev/null +++ b/.env.sample @@ -0,0 +1,8 @@ +TYPE=argus + +DOMAIN=argus.example.com + +## Domain aliases +#EXTRA_DOMAINS=', `www.argus.example.com`' + +LETS_ENCRYPT_ENV=production diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7a6353d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.envrc diff --git a/README.md b/README.md new file mode 100644 index 0000000..069806c --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# argus + +> One line description of the recipe + + + +* **Category**: Apps +* **Status**: 0 +* **Image**: [`argus`](https://hub.docker.com/r/argus), 4, upstream +* **Healthcheck**: No +* **Backups**: No +* **Email**: No +* **Tests**: No +* **SSO**: No + + + +## Quick start + +* `abra app new argus --secrets` +* `abra app config ` +* `abra app deploy ` + +For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech). diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..a3ea1f3 --- /dev/null +++ b/compose.yml @@ -0,0 +1,48 @@ +--- +version: "3.8" + +services: + app: + image: releaseargus/argus:latest + volumes: + - db:/app/data/ + configs: + - source: config_yml + target: /app/config + environment: + ARGUS_UID: 911 # Optional UID override + ARGUS_GID: 911 # Optional GID override + restart: always + volumes: + - db + networks: + - proxy + deploy: + restart_policy: + condition: on-failure + labels: + - "traefik.enable=true" + - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8080" + - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})" + - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" + - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" + - "coop-cloud.${STACK_NAME}.version=" + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8080"] + interval: 30s + timeout: 10s + retries: 10 + start_period: 1m + +configs: + config_yml: + name: ${STACK_NAME}_config_yml_${CONFIG_YML_VERSION} + file: config.yml.tmpl + template_driver: golang + +volumes: + db: + +networks: + proxy: + external: true