- Meilisearch v1.12 + Qdrant v1.13 toegevoegd aan docker-compose
- Env vars voor MEILI_URL/QDRANT_URL/MISTRAL_API_KEY/FORGEJO_API_TOKEN
- Nieuwe web vhost (wetgit.nl) via wetgit-web.conf.j2
- Systemd service-paden:
- wetgit.service → uvicorn wetgit.api.app:app
- wetgit-celery.service → celery -A wetgit.tasks
- WETGIT_GIT_REPOS_DIR verplaatst naar {{ app_dir }}/app
(data leeft op /opt/wetgit/app/rijk/)
- Nieuwe vault-secrets: meili_master_key, qdrant_api_key, mistral_api_key
103 lines
2.5 KiB
Django/Jinja
103 lines
2.5 KiB
Django/Jinja
services:
|
|
forgejo:
|
|
image: codeberg.org/forgejo/forgejo:10
|
|
container_name: wetgit-forgejo
|
|
restart: unless-stopped
|
|
environment:
|
|
- USER_UID={{ wetgit_uid }}
|
|
- USER_GID={{ wetgit_gid }}
|
|
volumes:
|
|
- {{ forgejo_data_dir }}:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- "{{ backend_host }}:{{ forgejo_port }}:3000"
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 1G
|
|
cpus: "2.0"
|
|
reservations:
|
|
memory: 256M
|
|
cpus: "0.5"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3000/api/v1/version"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
networks:
|
|
- wetgit
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: wetgit-redis
|
|
restart: unless-stopped
|
|
ports:
|
|
- "{{ backend_host }}:{{ redis_port }}:6379"
|
|
volumes:
|
|
- {{ data_dir }}/redis:/data
|
|
command: redis-server --appendonly yes --maxmemory 256mb --maxmemory-policy allkeys-lru
|
|
networks:
|
|
- wetgit
|
|
|
|
meilisearch:
|
|
image: getmeili/meilisearch:v1.12
|
|
container_name: wetgit-meilisearch
|
|
restart: unless-stopped
|
|
ports:
|
|
- "{{ backend_host }}:{{ meili_port }}:7700"
|
|
volumes:
|
|
- {{ data_dir }}/meilisearch:/meili_data
|
|
environment:
|
|
- MEILI_ENV={{ meili_env }}
|
|
{% if meili_master_key | length > 0 %}
|
|
- MEILI_MASTER_KEY={{ meili_master_key }}
|
|
{% endif %}
|
|
- MEILI_LOG_LEVEL=WARN
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 1G
|
|
cpus: "2.0"
|
|
reservations:
|
|
memory: 256M
|
|
cpus: "0.5"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:7700/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
networks:
|
|
- wetgit
|
|
|
|
qdrant:
|
|
image: qdrant/qdrant:v1.13.2
|
|
container_name: wetgit-qdrant
|
|
restart: unless-stopped
|
|
ports:
|
|
- "{{ backend_host }}:{{ qdrant_port }}:6333"
|
|
volumes:
|
|
- {{ data_dir }}/qdrant:/qdrant/storage
|
|
{% if qdrant_api_key | length > 0 %}
|
|
environment:
|
|
- QDRANT__SERVICE__API_KEY={{ qdrant_api_key }}
|
|
{% endif %}
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 512M
|
|
cpus: "1.0"
|
|
reservations:
|
|
memory: 128M
|
|
cpus: "0.25"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "bash -c 'echo > /dev/tcp/localhost/6333'"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
networks:
|
|
- wetgit
|
|
|
|
networks:
|
|
wetgit:
|
|
name: wetgit-network
|