69 lines
1.5 KiB
YAML
69 lines
1.5 KiB
YAML
services:
|
|
backend:
|
|
profiles:
|
|
- all
|
|
container_name: decompile-ai-backend
|
|
build: .
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/decompile_ai
|
|
- SPRING_RABBITMQ_HOST=rabbitmq
|
|
- APP_STORAGE_UPLOAD_DIR=/tmp/decompile-ai/uploads/binaries
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
rabbitmq:
|
|
condition: service_healthy
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /tmp/decompile-ai/uploads:/tmp/decompile-ai/uploads
|
|
networks:
|
|
- decompile-ai-network
|
|
|
|
postgres:
|
|
profiles:
|
|
- dev
|
|
- all
|
|
container_name: decompile-ai-postgres
|
|
image: pgvector/pgvector:pg18
|
|
environment:
|
|
- POSTGRES_USER=decompile_ai
|
|
- POSTGRES_PASSWORD=decompile_ai
|
|
- POSTGRES_DB=decompile_ai
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres:/var/lib/postgresql
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U decompile_ai"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
networks:
|
|
- decompile-ai-network
|
|
|
|
rabbitmq:
|
|
profiles:
|
|
- dev
|
|
- all
|
|
container_name: decompile-ai-rabbitmq
|
|
image: rabbitmq:4-management
|
|
ports:
|
|
- "5672:5672"
|
|
- "15672:15672"
|
|
healthcheck:
|
|
test: ["CMD", "rabbitmq-diagnostics", "check_port_connectivity"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
networks:
|
|
- decompile-ai-network
|
|
|
|
networks:
|
|
decompile-ai-network:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
postgres:
|