- New Build and startup procedures for all services, compliant for both docker, podman and k8s
This commit is contained in:
@@ -63,12 +63,20 @@ services:
|
||||
context: ..
|
||||
dockerfile: ./docker/eveai_app/Dockerfile
|
||||
ports:
|
||||
- 3001:5001 # Dev app volgens port schema
|
||||
- 3001:8080 # Dev app volgens port schema
|
||||
expose:
|
||||
- 8000
|
||||
environment:
|
||||
<<: *common-variables
|
||||
COMPONENT_NAME: eveai_app
|
||||
ROLE: web
|
||||
PORT: 8080
|
||||
WORKERS: 1 # Dev: lagere concurrency
|
||||
WORKER_CLASS: gevent
|
||||
WORKER_CONN: 100
|
||||
LOGLEVEL: info # Lowercase voor gunicorn
|
||||
MAX_REQUESTS: 1000
|
||||
MAX_REQUESTS_JITTER: 100
|
||||
volumes:
|
||||
- ../eveai_app:/app/eveai_app
|
||||
- ../common:/app/common
|
||||
@@ -86,7 +94,7 @@ services:
|
||||
minio:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:5001/healthz/ready"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/healthz/ready"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
@@ -104,6 +112,11 @@ services:
|
||||
environment:
|
||||
<<: *common-variables
|
||||
COMPONENT_NAME: eveai_workers
|
||||
ROLE: worker
|
||||
CELERY_CONCURRENCY: 1 # Dev: lagere concurrency
|
||||
CELERY_LOGLEVEL: INFO # Uppercase voor celery
|
||||
CELERY_MAX_TASKS_PER_CHILD: 1000
|
||||
CELERY_PREFETCH: 1
|
||||
volumes:
|
||||
- ../eveai_workers:/app/eveai_workers
|
||||
- ../common:/app/common
|
||||
@@ -127,12 +140,20 @@ services:
|
||||
context: ..
|
||||
dockerfile: ./docker/eveai_chat_client/Dockerfile
|
||||
ports:
|
||||
- 3004:5004 # Dev chat client volgens port schema
|
||||
- 3004:8080 # Dev chat client volgens port schema
|
||||
expose:
|
||||
- 8000
|
||||
environment:
|
||||
<<: *common-variables
|
||||
COMPONENT_NAME: eveai_chat_client
|
||||
ROLE: web
|
||||
PORT: 8080
|
||||
WORKERS: 1 # Dev: lagere concurrency
|
||||
WORKER_CLASS: gevent
|
||||
WORKER_CONN: 100
|
||||
LOGLEVEL: info # Lowercase voor gunicorn
|
||||
MAX_REQUESTS: 1000
|
||||
MAX_REQUESTS_JITTER: 100
|
||||
volumes:
|
||||
- ../eveai_chat_client:/app/eveai_chat_client
|
||||
- ../common:/app/common
|
||||
@@ -148,7 +169,7 @@ services:
|
||||
minio:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:5004/healthz/ready"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/healthz/ready"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
@@ -166,6 +187,11 @@ services:
|
||||
environment:
|
||||
<<: *common-variables
|
||||
COMPONENT_NAME: eveai_chat_workers
|
||||
ROLE: worker
|
||||
CELERY_CONCURRENCY: 8 # Dev: lagere concurrency
|
||||
CELERY_LOGLEVEL: INFO # Uppercase voor celery
|
||||
CELERY_MAX_TASKS_PER_CHILD: 1000
|
||||
CELERY_PREFETCH: 1
|
||||
volumes:
|
||||
- ../eveai_chat_workers:/app/eveai_chat_workers
|
||||
- ../common:/app/common
|
||||
@@ -187,12 +213,20 @@ services:
|
||||
context: ..
|
||||
dockerfile: ./docker/eveai_api/Dockerfile
|
||||
ports:
|
||||
- 3003:5003 # Dev API volgens port schema
|
||||
- 3003:8080 # Dev API volgens port schema
|
||||
expose:
|
||||
- 8000
|
||||
environment:
|
||||
<<: *common-variables
|
||||
COMPONENT_NAME: eveai_api
|
||||
ROLE: web
|
||||
PORT: 8080
|
||||
WORKERS: 1 # Dev: lagere concurrency
|
||||
WORKER_CLASS: gevent
|
||||
WORKER_CONN: 100
|
||||
LOGLEVEL: info # Lowercase voor gunicorn
|
||||
MAX_REQUESTS: 1000
|
||||
MAX_REQUESTS_JITTER: 100
|
||||
volumes:
|
||||
- ../eveai_api:/app/eveai_api
|
||||
- ../common:/app/common
|
||||
@@ -208,7 +242,7 @@ services:
|
||||
minio:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: [ "CMD", "curl", "-f", "http://localhost:5003/healthz/ready" ]
|
||||
test: [ "CMD", "curl", "-f", "http://localhost:8080/healthz/ready" ]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
@@ -216,26 +250,28 @@ services:
|
||||
networks:
|
||||
- eveai-dev-network
|
||||
|
||||
eveai_beat:
|
||||
image: ${REGISTRY_PREFIX:-}josakola/eveai_beat:latest
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: ./docker/eveai_beat/Dockerfile
|
||||
environment:
|
||||
<<: *common-variables
|
||||
COMPONENT_NAME: eveai_beat
|
||||
volumes:
|
||||
- ../eveai_beat:/app/eveai_beat
|
||||
- ../common:/app/common
|
||||
- ../config:/app/config
|
||||
- ../scripts:/app/scripts
|
||||
- ../patched_packages:/app/patched_packages
|
||||
- ./eveai_logs:/app/logs
|
||||
depends_on:
|
||||
redis:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- eveai-dev-network
|
||||
# eveai_beat:
|
||||
# image: ${REGISTRY_PREFIX:-}josakola/eveai_beat:latest
|
||||
# build:
|
||||
# context: ..
|
||||
# dockerfile: ./docker/eveai_beat/Dockerfile
|
||||
# environment:
|
||||
# <<: *common-variables
|
||||
# COMPONENT_NAME: eveai_beat
|
||||
# ROLE: beat
|
||||
# CELERY_LOGLEVEL: INFO # Uppercase voor celery
|
||||
# volumes:
|
||||
# - ../eveai_beat:/app/eveai_beat
|
||||
# - ../common:/app/common
|
||||
# - ../config:/app/config
|
||||
# - ../scripts:/app/scripts
|
||||
# - ../patched_packages:/app/patched_packages
|
||||
# - ./eveai_logs:/app/logs
|
||||
# depends_on:
|
||||
# redis:
|
||||
# condition: service_healthy
|
||||
# networks:
|
||||
# - eveai-dev-network
|
||||
|
||||
eveai_entitlements:
|
||||
image: ${REGISTRY_PREFIX:-}josakola/eveai_entitlements:latest
|
||||
@@ -247,6 +283,11 @@ services:
|
||||
environment:
|
||||
<<: *common-variables
|
||||
COMPONENT_NAME: eveai_entitlements
|
||||
ROLE: worker
|
||||
CELERY_CONCURRENCY: 1 # Dev: lagere concurrency
|
||||
CELERY_LOGLEVEL: INFO # Uppercase voor celery
|
||||
CELERY_MAX_TASKS_PER_CHILD: 1000
|
||||
CELERY_PREFETCH: 1
|
||||
volumes:
|
||||
- ../eveai_entitlements:/app/eveai_entitlements
|
||||
- ../common:/app/common
|
||||
|
||||
Reference in New Issue
Block a user