feat: first run at mvp recipe
This commit is contained in:
parent
7d364df20d
commit
ddb89cbe62
38
.drone.yml
38
.drone.yml
|
@ -1,38 +0,0 @@
|
|||
---
|
||||
kind: pipeline
|
||||
name: deploy to swarm-test.autonomic.zone
|
||||
steps:
|
||||
- name: deployment
|
||||
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
|
||||
settings:
|
||||
host: swarm-test.autonomic.zone
|
||||
stack: {{ .Name }}
|
||||
generate_secrets: true
|
||||
purge: true
|
||||
deploy_key:
|
||||
from_secret: drone_ssh_swarm_test
|
||||
networks:
|
||||
- proxy
|
||||
environment:
|
||||
DOMAIN: {{ .Name }}.swarm-test.autonomic.zone
|
||||
STACK_NAME: {{ .Name }}
|
||||
LETS_ENCRYPT_ENV: production
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
---
|
||||
kind: pipeline
|
||||
name: generate recipe catalogue
|
||||
steps:
|
||||
- name: release a new version
|
||||
image: plugins/downstream
|
||||
settings:
|
||||
server: https://build.coopcloud.tech
|
||||
token:
|
||||
from_secret: drone_abra-bot_token
|
||||
fork: true
|
||||
repositories:
|
||||
- coop-cloud/auto-recipes-catalogue-json
|
||||
|
||||
trigger:
|
||||
event: tag
|
|
@ -1,8 +1,3 @@
|
|||
TYPE=sextant
|
||||
|
||||
DOMAIN=sextant.example.com
|
||||
|
||||
## Domain aliases
|
||||
#EXTRA_DOMAINS=', `www.sextant.example.com`'
|
||||
|
||||
LETS_ENCRYPT_ENV=production
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
# sextant
|
||||
|
||||
> One line description of the recipe
|
||||
> Simple tools for location related lookups
|
||||
|
||||
More information on the upstream repository: [`eotl/sextant`](https://codeberg.org/eotl/sextant).
|
||||
|
||||
<!-- metadata -->
|
||||
|
||||
* **Category**: Apps
|
||||
* **Status**: 0
|
||||
* **Image**: [`sextant`](https://hub.docker.com/r/sextant), 4, upstream
|
||||
* **Image**: [`sextant`](https://codeberg.org/eotl/-/packages/container/sextant/latest), 4, upstream
|
||||
* **Healthcheck**: No
|
||||
* **Backups**: No
|
||||
* **Email**: No
|
||||
|
|
30
compose.yml
30
compose.yml
|
@ -3,29 +3,35 @@ version: "3.8"
|
|||
|
||||
services:
|
||||
app:
|
||||
image: nginx:1.20.0
|
||||
# NOTE(d1): switch to fixed tag when published
|
||||
image: codeberg.org/eotl/sextant:latest
|
||||
networks:
|
||||
- proxy
|
||||
volumes:
|
||||
- sextant_data:/home/sextant
|
||||
configs:
|
||||
- source: sextant_conf
|
||||
target: /home/sextant/.sextant.conf
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8081"
|
||||
- "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}"
|
||||
## Redirect from EXTRA_DOMAINS to DOMAIN
|
||||
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
||||
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
||||
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
||||
# NOTE(d1): switch to version when published
|
||||
- "coop-cloud.${STACK_NAME}.version="
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
start_period: 1m
|
||||
|
||||
configs:
|
||||
sextant_conf:
|
||||
name: ${STACK_NAME}_sextant_conf_${SEXTANT_CONF_VERSION}
|
||||
file: sextant.conf.tmpl
|
||||
template_driver: golang
|
||||
|
||||
volumes:
|
||||
sextant_data:
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
port = 8081
|
||||
be_verbose = false
|
||||
nominatim_url = "https://nominatim.openstreetmap.org/search.php"
|
||||
vroom_url = "https://routing.eotl.supply/osmr"
|
||||
dsn = "~/.sextant.db"
|
||||
ssrauth_filepath = "/var/www/htdocs/default/.ssr/auth"
|
Loading…
Reference in New Issue