2026-07-09 22:08:26 +07:00
|
|
|
services:
|
|
|
|
|
scraper-api:
|
|
|
|
|
container_name: scraper-api
|
2026-07-21 13:27:13 +07:00
|
|
|
image: ghcr.io/asepharyana/asepharyana-hub/scraper-api:latest
|
2026-07-09 22:08:26 +07:00
|
|
|
restart: always
|
|
|
|
|
networks:
|
|
|
|
|
app-shared-net:
|
|
|
|
|
aliases:
|
|
|
|
|
- scraper-api
|
|
|
|
|
env_file:
|
|
|
|
|
- ../../.env
|
2026-07-21 13:27:13 +07:00
|
|
|
healthcheck:
|
|
|
|
|
test: ['CMD', 'curl', '-f', 'http://localhost:4091/health']
|
|
|
|
|
interval: 30s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 3
|
|
|
|
|
start_period: 15s
|
2026-07-09 22:08:26 +07:00
|
|
|
environment:
|
|
|
|
|
- REDIS_URL=redis://redis:6379
|
|
|
|
|
- JWT_SECRET=${JWT_SECRET:?JWT_SECRET is required}
|
|
|
|
|
- DATABASE_URL=${DATABASE_URL}
|
|
|
|
|
networks:
|
|
|
|
|
app-shared-net:
|
|
|
|
|
name: app-shared-net
|
|
|
|
|
external: true
|