Files
computer-playbook/roles/web-app-gitlab/templates/docker-compose.yml.j2
Kevin Veen-Birkenbach 426ba32c11 feat(services): add CPU/RAM/PIDs defaults for heavy roles and align service names
Add per-service resource overrides (cpus, mem_reservation, mem_limit, pids_limit) for ollama, mariadb, postgres, confluence, gitlab, jira, keycloak, nextcloud; light formatting fixes in wordpress.

Rename service keys from generic 'application/web' to concrete names (jira, confluence, gitlab, keycloak) and update compose templates accordingly.

Jira: introduce JIRA_STORAGE_PATH and switch mounts/README accordingly.

https://chatgpt.com/share/68d2d96c-9bf4-800f-bbec-d4f2c0051c06
2025-09-23 21:43:50 +02:00

28 lines
920 B
Django/Jinja

{% include 'roles/docker-compose/templates/base.yml.j2' %}
gitlab:
image: "{{ GITLAB_IMAGE }}:{{ GITLAB_VERSION }}"
hostname: '{{ GITLAB_HOSTNAME }}'
container_name: "{{ GITLAB_CONTAINER }}"
{% include 'roles/docker-container/templates/base.yml.j2' %}
ports:
- "127.0.0.1:{{ ports.localhost.http[application_id] }}:80"
- "{{ports.public.ssh[application_id]}}:22"
volumes:
- 'config:/etc/gitlab'
- 'logs:/var/log/gitlab'
- 'data:/var/opt/gitlab'
shm_size: '256m'
{% include 'roles/docker-container/templates/depends_on/dmbs_excl.yml.j2' %}
{% include 'roles/docker-container/templates/networks.yml.j2' %}
{% include 'roles/docker-compose/templates/volumes.yml.j2' %}
config:
name: {{ GITLAB_CONF_VOLUME }}
logs:
name: {{ GITLAB_LOGS_VOLUME }}
data:
name: {{ GITLAB_DATA_VOLUME }}
{% include 'roles/docker-compose/templates/networks.yml.j2' %}