Migration to podman. Dev is OK, certificate problem with test

This commit is contained in:
Josako
2025-08-12 06:33:17 +02:00
parent 866cc2a60d
commit 7e35549262
5 changed files with 426 additions and 360 deletions

View File

@@ -1,13 +1,4 @@
# Comments are provided throughout this file to help you get started.
# If you need more help, visit the Docker Compose reference guide at
# https://docs.docker.com/go/compose-spec-reference/
# Here the instructions define your application as a service called "server".
# This service is built from the Dockerfile in the current directory.
# You can add other services your application may depend on here, such as a
# database or a cache. For examples, see the Awesome Compose repository:
# https://github.com/docker/awesome-compose
# Podman Compose compatible versie met port schema compliance
x-common-variables: &common-variables
DB_HOST: db
DB_USER: luke
@@ -45,16 +36,13 @@ x-common-variables: &common-variables
services:
nginx:
container_name: nginx
image: josakola/nginx:latest
build:
context: ..
dockerfile: ./docker/nginx/Dockerfile
platforms:
- linux/amd64
- linux/arm64
ports:
- 80:80
- 8080:8080
- 3002:80 # Dev nginx proxy volgens port schema
environment:
<<: *common-variables
volumes:
@@ -72,18 +60,16 @@ services:
- eveai_api
- eveai_chat_client
networks:
- eveai-network
- eveai-dev-network
eveai_app:
container_name: eveai_app
image: josakola/eveai_app:latest
build:
context: ..
dockerfile: ./docker/eveai_app/Dockerfile
platforms:
- linux/amd64
- linux/arm64
ports:
- 5001:5001
- 3000:5001 # Dev app volgens port schema
expose:
- 8000
environment:
@@ -108,20 +94,18 @@ services:
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5001/healthz/ready"]
interval: 30s
timeout: 1s
timeout: 10s
retries: 3
start_period: 30s
start_period: 60s
networks:
- eveai-network
- eveai-dev-network
eveai_workers:
container_name: eveai_workers
image: josakola/eveai_workers:latest
build:
context: ..
dockerfile: ./docker/eveai_workers/Dockerfile
platforms:
- linux/amd64
- linux/arm64
expose:
- 8000
environment:
@@ -142,18 +126,16 @@ services:
minio:
condition: service_healthy
networks:
- eveai-network
- eveai-dev-network
eveai_chat_client:
container_name: eveai_chat_client
image: josakola/eveai_chat_client:latest
build:
context: ..
dockerfile: ./docker/eveai_chat_client/Dockerfile
platforms:
- linux/amd64
- linux/arm64
ports:
- 5004:5004
- 3004:5004 # Dev chat client volgens port schema
expose:
- 8000
environment:
@@ -176,20 +158,18 @@ services:
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5004/healthz/ready"]
interval: 30s
timeout: 1s
timeout: 10s
retries: 3
start_period: 30s
start_period: 60s
networks:
- eveai-network
- eveai-dev-network
eveai_chat_workers:
container_name: eveai_chat_workers
image: josakola/eveai_chat_workers:latest
build:
context: ..
dockerfile: ./docker/eveai_chat_workers/Dockerfile
platforms:
- linux/amd64
- linux/arm64
expose:
- 8000
environment:
@@ -208,26 +188,21 @@ services:
redis:
condition: service_healthy
networks:
- eveai-network
- eveai-dev-network
eveai_api:
container_name: eveai_api
image: josakola/eveai_api:latest
build:
context: ..
dockerfile: ./docker/eveai_api/Dockerfile
platforms:
- linux/amd64
- linux/arm64
ports:
- 5003:5003
- 3001:5003 # Dev API volgens port schema
expose:
- 8000
environment:
<<: *common-variables
COMPONENT_NAME: eveai_api
WORDPRESS_HOST: host.docker.internal
WORDPRESS_PORT: 10003
WORDPRESS_PROTOCOL: http
volumes:
- ../eveai_api:/app/eveai_api
- ../common:/app/common
@@ -245,20 +220,18 @@ services:
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:5003/healthz/ready" ]
interval: 30s
timeout: 1s
timeout: 10s
retries: 3
start_period: 30s
start_period: 60s
networks:
- eveai-network
- eveai-dev-network
eveai_beat:
container_name: eveai_beat
image: josakola/eveai_beat:latest
build:
context: ..
dockerfile: ./docker/eveai_beat/Dockerfile
platforms:
- linux/amd64
- linux/arm64
environment:
<<: *common-variables
COMPONENT_NAME: eveai_beat
@@ -273,16 +246,14 @@ services:
redis:
condition: service_healthy
networks:
- eveai-network
- eveai-dev-network
eveai_entitlements:
container_name: eveai_entitlements
image: josakola/eveai_entitlements:latest
build:
context: ..
dockerfile: ./docker/eveai_entitlements/Dockerfile
platforms:
- linux/amd64
- linux/arm64
expose:
- 8000
environment:
@@ -303,13 +274,14 @@ services:
minio:
condition: service_healthy
networks:
- eveai-network
- eveai-dev-network
db:
container_name: db
hostname: db
image: ankane/pgvector
ports:
- 5432:5432
- 3005:5432 # Dev database volgens port schema (vermijd standaard 5432)
restart: always
environment:
- POSTGRES_DB=eveai
@@ -324,13 +296,14 @@ services:
timeout: 5s
retries: 5
networks:
- eveai-network
- eveai-dev-network
redis:
container_name: redis
image: redis:7.2.5
restart: always
ports:
- "6379:6379"
- "3006:6379" # Dev Redis volgens port schema (vermijd standaard 6379)
volumes:
- ./db/redis:/data
healthcheck:
@@ -339,9 +312,10 @@ services:
timeout: 5s
retries: 5
networks:
- eveai-network
- eveai-dev-network
flower:
container_name: flower
image: josakola/flower:latest
build:
context: ..
@@ -351,17 +325,18 @@ services:
volumes:
- ../scripts:/app/scripts
ports:
- "5555:5555"
- "3007:5555" # Dev Flower volgens port schema
depends_on:
- redis
networks:
- eveai-network
- eveai-dev-network
minio:
container_name: minio
image: minio/minio
ports:
- "9000:9000"
- "9001:9001"
- "3008:9000" # Dev MinIO volgens port schema
- "3009:9001" # Dev MinIO console
expose:
- 9000
volumes:
@@ -376,18 +351,18 @@ services:
interval: 30s
timeout: 20s
retries: 3
start_period: 30s
start_period: 60s
networks:
- eveai-network
- eveai-dev-network
prometheus:
image: prom/prometheus:latest
container_name: prometheus
image: josakola/prometheus:latest
build:
context: ./prometheus
dockerfile: Dockerfile
container_name: prometheus
ports:
- "9090:9090"
- "3010:9090" # Dev Prometheus volgens port schema
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/data:/prometheus
@@ -399,24 +374,25 @@ services:
- '--web.enable-lifecycle'
restart: unless-stopped
networks:
- eveai-network
- eveai-dev-network
pushgateway:
container_name: pushgateway
image: prom/pushgateway:latest
restart: unless-stopped
ports:
- "9091:9091"
- "3011:9091" # Dev Pushgateway volgens port schema
networks:
- eveai-network
- eveai-dev-network
grafana:
image: grafana/grafana:latest
container_name: grafana
image: josakola/grafana:latest
build:
context: ./grafana
dockerfile: Dockerfile
container_name: grafana
ports:
- "3000:3000"
- "3012:3000" # Dev Grafana volgens port schema
volumes:
- ./grafana/provisioning:/etc/grafana/provisioning
- ./grafana/data:/var/lib/grafana
@@ -428,21 +404,12 @@ services:
depends_on:
- prometheus
networks:
- eveai-network
- eveai-dev-network
networks:
eveai-network:
eveai-dev-network:
driver: bridge
# This enables the containers to access the host network
driver_opts:
com.docker.network.bridge.host_ipc: "true"
volumes:
minio_data:
eveai_logs:
# db-data:
# redis-data:
# tenant-files:
#secrets:
# db-password:
# file: ./db/password.txt
eveai_logs: