Add gitea compose application config
This commit is contained in:
parent
e0fc6ab1fa
commit
fd056ba0fa
51
resources/docker-compose/gitea.yaml.j2
Normal file
51
resources/docker-compose/gitea.yaml.j2
Normal file
@ -0,0 +1,51 @@
|
||||
---
|
||||
version: "{{ omni_compose_version | string }}"
|
||||
|
||||
|
||||
networks:
|
||||
gitea:
|
||||
name: gitea
|
||||
driver: overlay
|
||||
ipam:
|
||||
driver: default
|
||||
config:
|
||||
- subnet: {{ omni_compose_apps.gitea.networks.main }}
|
||||
|
||||
|
||||
volumes:
|
||||
gitea-data:
|
||||
name: datastore{{ omni_compose_apps.gitea.datastore }}
|
||||
driver: glusterfs
|
||||
|
||||
|
||||
services:
|
||||
server:
|
||||
image: gitea/gitea:{{ omni_compose_apps.gitea.versions.gitea | default(omni_compose_apps.gitea.versions.default) }}
|
||||
hostname: gitea
|
||||
networks:
|
||||
- gitea
|
||||
ports:
|
||||
- published: {{ omni_compose_apps.gitea.published.ports.3000 }}
|
||||
target: 3000
|
||||
protocol: tcp
|
||||
mode: ingress
|
||||
- published: {{ omni_compose_apps.gitea.published.ports.22 }}
|
||||
target: 22
|
||||
protocol: tcp
|
||||
mode: ingress
|
||||
volumes:
|
||||
- type: volume
|
||||
source: gitea-data
|
||||
target: /data
|
||||
read_only: false
|
||||
environment:
|
||||
USER_UID: "{{ omni_compose_apps.gitea.account.uid | string }}"
|
||||
USER_GID: "{{ omni_compose_apps.gitea.account.uid | string }}"
|
||||
APP_NAME: ENP VCS
|
||||
RUN_MODE: prod
|
||||
DOMAIN: jupiter.net.enp.one
|
||||
ROOT_URL: https://{{ omni_compose_apps.gitea.published.host }}/
|
||||
DB_TYPE: sqlite3
|
||||
DISABLE_REGISTRATION: "true"
|
||||
deploy:
|
||||
replicas: 1
|
35
vars/applications.yml
Normal file
35
vars/applications.yml
Normal file
@ -0,0 +1,35 @@
|
||||
---
|
||||
omni_compose_version: 3.7
|
||||
|
||||
omni_compose_apps:
|
||||
bitwarden:
|
||||
datastore: /appdata/bitwarden
|
||||
account:
|
||||
name: mech_bitwarden
|
||||
uid: 1294
|
||||
published:
|
||||
host: ssv.enp.one
|
||||
ports:
|
||||
8080: 8090
|
||||
8443: 8943
|
||||
networks:
|
||||
internal: 192.168.104.0/24
|
||||
external: 192.168.105.0/24
|
||||
versions:
|
||||
default: 1.36.1
|
||||
web: 2.15.1
|
||||
attachments: 1.34.0
|
||||
gitea:
|
||||
datastore: /appdata/gitea
|
||||
account:
|
||||
name: mech_gitea
|
||||
uid: 1295
|
||||
published:
|
||||
host: vcs.enp.one
|
||||
ports:
|
||||
3000: 3000
|
||||
22: 2222
|
||||
networks:
|
||||
main: 192.168.103.0/24
|
||||
versions:
|
||||
default: 1.11.5
|
Reference in New Issue
Block a user