chore: initial import
This commit is contained in:
53
docker-compose.podman.yml
Normal file
53
docker-compose.podman.yml
Normal file
@@ -0,0 +1,53 @@
|
||||
services:
|
||||
postgres:
|
||||
image: docker.io/library/postgres:16-alpine
|
||||
container_name: ai-ops-podman-postgres
|
||||
environment:
|
||||
POSTGRES_USER: aiops
|
||||
POSTGRES_PASSWORD: aiops123
|
||||
POSTGRES_DB: ai_ops
|
||||
ports:
|
||||
- "15432:5432"
|
||||
volumes:
|
||||
- podman_postgres_data:/var/lib/postgresql/data
|
||||
- ./tech/migrations:/docker-entrypoint-initdb.d:ro
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U aiops -d ai_ops"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
redis:
|
||||
image: docker.io/library/redis:8-alpine
|
||||
container_name: ai-ops-podman-redis
|
||||
ports:
|
||||
- "16379:6379"
|
||||
volumes:
|
||||
- podman_redis_data:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
ai-ops:
|
||||
image: docker.io/library/alpine:3.19
|
||||
container_name: ai-ops-podman-app
|
||||
working_dir: /app
|
||||
command: ["/app/ai-ops"]
|
||||
ports:
|
||||
- "18080:8080"
|
||||
environment:
|
||||
AI_OPS_CONFIG: /app/config.yaml
|
||||
volumes:
|
||||
- ./ai-ops-static:/app/ai-ops:ro
|
||||
- ./config.podman.yaml:/app/config.yaml:ro
|
||||
- ./static:/app/static:ro
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
podman_postgres_data:
|
||||
podman_redis_data:
|
||||
Reference in New Issue
Block a user