forked from 0k/0k-charms
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
49 lines
1.3 KiB
description: "Drone Server"
|
|
maintainer: "Valentin Lab <valentin.lab@kalysto.org>"
|
|
## XXXvlab: docker uses the 'build' directory or the 'image:' option here.
|
|
docker-image: docker.0k.io/drone:1.0
|
|
docker-compose:
|
|
environment:
|
|
DRONE_OPEN: "true" ## users are authenticated through the vcs-manager anyway
|
|
|
|
DRONE_GIT_ALWAYS_AUTH: "false"
|
|
DRONE_TLS_AUTOCERT: "false"
|
|
|
|
## default database
|
|
DATABASE_DRIVER: sqlite3
|
|
DATABASE_CONFIG: /data/drone.sqlite
|
|
|
|
# GIN_MODE: release
|
|
|
|
## Should probably offer an option in charm, with 'log.{}'
|
|
# DRONE_LOGS_DEBUG: "true"
|
|
# DRONE_LOGS_TEXT=true
|
|
# DRONE_LOGS_PRETTY=true
|
|
# DRONE_LOGS_COLOR=true
|
|
|
|
data-resources:
|
|
- /data
|
|
|
|
default-options:
|
|
|
|
mode: single ## mode is 'single' or 'multi'
|
|
capacity: 2 ## only if mode is 'single'
|
|
#secret: ## only if mode is 'multi'
|
|
|
|
uses:
|
|
vcs-manager:
|
|
#constraint: required | recommended | optional
|
|
#auto: pair | summon | none ## default: pair
|
|
constraint: required
|
|
auto: pair
|
|
solves:
|
|
feature: "Version control system manager"
|
|
web-proxy:
|
|
#constraint: required | recommended | optional
|
|
#auto: pair | summon | none ## default: pair
|
|
constraint: recommended
|
|
auto: pair
|
|
solves:
|
|
proxy: "Public access"
|
|
default-options:
|
|
target: !var-expand ${MASTER_BASE_SERVICE_NAME}:80
|