Files
kycnotme/docker-compose.yml

68 lines
1.3 KiB
YAML
Raw Normal View History

2025-05-19 10:23:36 +00:00
volumes:
database:
services:
database:
image: postgres:latest
volumes:
- database:/var/lib/postgresql/data:z
restart: unless-stopped
2025-06-04 19:37:33 +00:00
env_file:
- .env
2025-05-19 10:23:36 +00:00
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-kycnot} -d ${POSTGRES_DATABASE:-kycnot}"]
interval: 10s
timeout: 5s
retries: 5
pyworker:
build:
context: ./pyworker
restart: always
2025-06-04 19:37:33 +00:00
env_file:
- .env
2025-05-19 10:23:36 +00:00
crawl4ai:
image: unclecode/crawl4ai:basic-amd64
expose:
- "11235"
2025-06-04 19:37:33 +00:00
env_file:
- .env
2025-05-19 10:23:36 +00:00
volumes:
- /dev/shm:/dev/shm
deploy:
resources:
limits:
memory: 4G
reservations:
memory: 1G
redis:
image: redis:latest
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
astro:
build:
2025-06-04 19:37:33 +00:00
dockerfile: web/Dockerfile
2025-05-19 10:23:36 +00:00
image: kycnotme/astro:${ASTRO_IMAGE_TAG:-latest}
restart: unless-stopped
2025-05-25 10:07:02 +00:00
env_file:
- .env
2025-05-19 10:23:36 +00:00
depends_on:
database:
condition: service_healthy
redis:
condition: service_healthy
expose:
- 4321
healthcheck:
2025-05-22 22:38:41 +00:00
test: ["CMD", "curl", "-k", "--silent", "--fail", "http://localhost:4321/health"]
2025-05-19 10:23:36 +00:00
interval: 10s
timeout: 5s
retries: 5