fixed volumes
This commit is contained in:
parent
a8a5c2be84
commit
9783dbc89d
@ -3,12 +3,12 @@ services:
|
||||
gitea:
|
||||
image: gitea/gitea:1.3.0-rc1
|
||||
volumes:
|
||||
- gitea-data-git:/data/git
|
||||
- gitea-data-ssh:/data/ssh
|
||||
- gitea-data-conf:/data/gitea/lfs
|
||||
- gitea-data-lfs:/data/gitea/lfs
|
||||
- gitea-data-log:/data/gitea/log
|
||||
- gitea-data-sessions:/data/gitea/sessions
|
||||
- ${data_path}/git:/data/git
|
||||
- ${data_path}/ssh:/data/ssh
|
||||
- ${data_path}/gitea/conf:/data/gitea/lfs
|
||||
- ${data_path}/gitea/lfs:/data/gitea/lfs
|
||||
- ${data_path}/gitea/log:/data/gitea/log
|
||||
- ${data_path}/gitea/sessions:/data/gitea/sessions
|
||||
|
||||
{{- if ne .Values.db_link ""}}
|
||||
external_links:
|
||||
@ -22,28 +22,10 @@ services:
|
||||
MYSQL_ROOT_PASSWORD: ${mysql_password}
|
||||
MYSQL_DATABASE: 'gitea'
|
||||
volumes:
|
||||
- gitea-db:/var/lib/mysql
|
||||
- ${data_path}/gitea/db:/var/lib/mysql
|
||||
{{- end}}
|
||||
lb:
|
||||
image: rancher/lb-service-haproxy:v0.7.9
|
||||
ports:
|
||||
- ${http_port}:${http_port}/tcp
|
||||
- ${ssh_port}:${ssh_port}/tcp
|
||||
volumes:
|
||||
gitea-data-git:
|
||||
driver: ${volume_driver}
|
||||
gitea-data-ssh:
|
||||
driver: ${volume_driver}
|
||||
gitea-data-conf:
|
||||
driver: ${volume_driver}
|
||||
gitea-data-lfs:
|
||||
driver: ${volume_driver}
|
||||
gitea-data-log:
|
||||
driver: ${volume_driver}
|
||||
gitea-data-sessions:
|
||||
driver: ${volume_driver}
|
||||
{{- if eq .Values.db_link ""}}
|
||||
gitea-db:
|
||||
driver: ${volume_driver}
|
||||
{{- end}}
|
||||
|
||||
|
@ -19,17 +19,23 @@ catalog:
|
||||
required: true
|
||||
default: "2222"
|
||||
type: "int"
|
||||
- variable: "volume_driver"
|
||||
description: "Volume driver to associate with this service."
|
||||
label: "Volume Driver"
|
||||
- variable: data_path
|
||||
description: "Path where to store the data of the Gitea-instance."
|
||||
label: "Data path"
|
||||
required: true
|
||||
default: "local"
|
||||
type: enum
|
||||
options: # List of options if using type of `enum`
|
||||
- local
|
||||
- rancher-nfs
|
||||
- rancher-efs
|
||||
- rancher-ebs
|
||||
default: "/var/lib/gitea"
|
||||
type: "string"
|
||||
# - variable: "volume_driver"
|
||||
# description: "Volume driver to associate with this service."
|
||||
# label: "Volume Driver"
|
||||
# required: true
|
||||
# default: "local"
|
||||
# type: enum
|
||||
# options: # List of options if using type of `enum`
|
||||
# - local
|
||||
# - rancher-nfs
|
||||
# - rancher-efs
|
||||
# - rancher-ebs
|
||||
- variable: "db_link"
|
||||
description: "External DB service to use with gitea instead of its own DB-Container."
|
||||
label: "External DB service"
|
||||
|
Loading…
x
Reference in New Issue
Block a user