This repository has been archived on 2024-05-02. You can view files and clone it, but cannot push or open issues or pull requests.
omni-ansible/resources/docker-compose/gitea.yaml.j2

52 lines
1.3 KiB
Plaintext
Raw Normal View History

2020-12-09 03:41:03 +00:00
---
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