Files
kycnotme/docker-compose.yml

81 lines
1.5 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:
2025-06-09 10:00:55 +00:00
test:
[
'CMD-SHELL',
'pg_isready -U ${POSTGRES_USER:-kycnot} -d ${POSTGRES_DATABASE:-kycnot}',
]
2025-05-19 10:23:36 +00:00
interval: 10s
timeout: 5s
retries: 5
pyworker:
build:
context: ./pyworker
2025-06-06 10:09:59 +00:00
image: kycnotme/pyworker:${PYWORKER_IMAGE_TAG:-latest}
2025-05-19 10:23:36 +00:00
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:
2025-06-09 10:00:55 +00:00
- '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:
2025-06-09 10:00:55 +00:00
test: ['CMD', 'redis-cli', 'ping']
2025-05-19 10:23:36 +00:00
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-06-09 10:00:55 +00:00
test:
[
'CMD',
'curl',
'-k',
'--silent',
'--fail',
'http://localhost:4321/internal-api/healthcheck',
]
2025-05-19 10:23:36 +00:00
interval: 10s
timeout: 5s
retries: 5