2026-07-09 22:08:26 +07:00
|
|
|
services:
|
|
|
|
|
scraper-api:
|
|
|
|
|
container_name: scraper-api
|
2026-07-22 00:22:16 +00:00
|
|
|
image: ghcr.io/asepharyana/asepharyana-hub/scraper-api:sha-7901597
|
2026-07-09 22:08:26 +07:00
|
|
|
restart: always
|
2026-07-21 17:26:02 +07:00
|
|
|
depends_on:
|
|
|
|
|
nats:
|
2026-07-21 17:30:21 +07:00
|
|
|
condition: service_started
|
|
|
|
|
dapr-placement:
|
|
|
|
|
condition: service_started
|
2026-07-09 22:08:26 +07:00
|
|
|
networks:
|
|
|
|
|
app-shared-net:
|
|
|
|
|
aliases:
|
|
|
|
|
- scraper-api
|
|
|
|
|
env_file:
|
|
|
|
|
- ../../.env
|
2026-07-21 13:27:13 +07:00
|
|
|
healthcheck:
|
2026-07-21 15:52:51 +07:00
|
|
|
test: ['CMD-SHELL', 'curl -so /dev/null --connect-timeout 5 http://localhost:4091/ || test $? -eq 22']
|
2026-07-21 13:27:13 +07:00
|
|
|
interval: 30s
|
2026-07-21 15:32:25 +07:00
|
|
|
timeout: 10s
|
|
|
|
|
retries: 5
|
|
|
|
|
start_period: 30s
|
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}
|
2026-07-22 12:55:50 +07:00
|
|
|
|
2026-07-21 17:26:02 +07:00
|
|
|
|
|
|
|
|
scraper-api-dapr:
|
|
|
|
|
container_name: scraper-api-dapr
|
|
|
|
|
image: daprio/daprd:latest
|
|
|
|
|
restart: always
|
|
|
|
|
depends_on:
|
|
|
|
|
nats:
|
2026-07-21 17:30:21 +07:00
|
|
|
condition: service_started
|
|
|
|
|
dapr-placement:
|
|
|
|
|
condition: service_started
|
2026-07-21 17:26:02 +07:00
|
|
|
networks:
|
|
|
|
|
- app-shared-net
|
|
|
|
|
command:
|
|
|
|
|
- './daprd'
|
|
|
|
|
- '--app-id=scraper-api'
|
|
|
|
|
- '--app-port=4091'
|
|
|
|
|
- '--dapr-http-port=3500'
|
|
|
|
|
- '--dapr-grpc-port=50001'
|
|
|
|
|
- '--placement-host-address=dapr-placement:50005'
|
2026-07-21 17:31:57 +07:00
|
|
|
- '--resources-path=/components'
|
2026-07-21 17:26:02 +07:00
|
|
|
volumes:
|
|
|
|
|
- ../../infra/dapr/components:/components
|
|
|
|
|
|
2026-07-09 22:08:26 +07:00
|
|
|
networks:
|
|
|
|
|
app-shared-net:
|
|
|
|
|
name: app-shared-net
|
|
|
|
|
external: true
|