feat(core-git): каркас машины CT 904 под Gitea до миграции
ansible-core-git / deploy (push) Successful in 27s
ansible-core-mon / deploy (push) Successful in 24s
ansible-core-net / deploy (push) Successful in 54s
ansible-core-secrets / deploy (push) Successful in 18s
ansible-ger-nod-02 / deploy (push) Successful in 1m15s
ansible-opnsense / deploy (push) Successful in 6s
ansible-rus-central / deploy (push) Successful in 50s
ansible-core-git / deploy (push) Successful in 27s
ansible-core-mon / deploy (push) Successful in 24s
ansible-core-net / deploy (push) Successful in 54s
ansible-core-secrets / deploy (push) Successful in 18s
ansible-ger-nod-02 / deploy (push) Successful in 1m15s
ansible-opnsense / deploy (push) Successful in 6s
ansible-rus-central / deploy (push) Successful in 50s
Добавляет terraform/ansible/CI и scrape cAdvisor. Стек Gitea без POSTGRES_PASSWORD в Infisical не поднимается — данные придут с CT 109. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
090a92174b
commit
c507ed1fdb
15 files changed
+315
-11
No files matched your search
@@ -0,0 +1,76 @@
|
||||
name: gitea
|
||||
|
||||
networks:
|
||||
gitea:
|
||||
external: false
|
||||
{% if gitea_runner_enabled %}
|
||||
|
||||
volumes:
|
||||
runner-docker:
|
||||
{% endif %}
|
||||
|
||||
services:
|
||||
server:
|
||||
image: {{ gitea_image }}
|
||||
container_name: gitea
|
||||
environment:
|
||||
GITEA__database__DB_TYPE: postgres
|
||||
GITEA__database__HOST: db:5432
|
||||
GITEA__database__NAME: {{ gitea_postgres_db | to_json }}
|
||||
GITEA__database__USER: {{ gitea_postgres_user | to_json }}
|
||||
GITEA__database__PASSWD: {{ gitea_postgres_password | to_json }}
|
||||
GITEA__server__ROOT_URL: {{ gitea_root_url | to_json }}
|
||||
GITEA__server__DOMAIN: {{ gitea_domain | to_json }}
|
||||
GITEA__server__SSH_DOMAIN: {{ gitea_ssh_domain | to_json }}
|
||||
GITEA__server__SSH_PORT: "{{ gitea_ssh_port }}"
|
||||
GITEA__service__DISABLE_REGISTRATION: "true"
|
||||
restart: always
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
- {{ gitea_dir }}/gitea:/data
|
||||
ports:
|
||||
- "{{ gitea_http_port }}:3000"
|
||||
- "{{ gitea_ssh_port }}:22"
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
||||
db:
|
||||
image: {{ gitea_postgres_image }}
|
||||
container_name: gitea-db
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: {{ gitea_postgres_user | to_json }}
|
||||
POSTGRES_PASSWORD: {{ gitea_postgres_password | to_json }}
|
||||
POSTGRES_DB: {{ gitea_postgres_db | to_json }}
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
- {{ gitea_dir }}/postgres:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U {{ gitea_postgres_user }} -d {{ gitea_postgres_db }}"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
start_period: 20s
|
||||
{% if gitea_runner_enabled %}
|
||||
|
||||
runner:
|
||||
image: {{ gitea_runner_image }}
|
||||
container_name: gitea-runner
|
||||
restart: always
|
||||
privileged: true
|
||||
environment:
|
||||
GITEA_INSTANCE_URL: {{ gitea_runner_instance_url | to_json }}
|
||||
GITEA_RUNNER_NAME: {{ gitea_runner_name | to_json }}
|
||||
GITEA_RUNNER_LABELS: {{ gitea_runner_labels | to_json }}
|
||||
{% if gitea_runner_registration_token | length > 0 %}
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN: {{ gitea_runner_registration_token | to_json }}
|
||||
{% endif %}
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
- {{ gitea_dir }}/runner-data:/data
|
||||
- runner-docker:/var/lib/docker
|
||||
{% endif %}
|
||||
Reference in new issue
Block a user