fix(dev): revenir au standalone Coolify DB + traefik.enable=false
Coolify ne connecte au vrai reseau coolify que les services avec labels Traefik. Fix: ajouter traefik.enable=false sur les services sans exposition HTTP (crawler, geocoder-worker, flaresolverr) pour forcer Coolify a les mettre sur le bon reseau. DATABASE_URL revient a pointer vers la DB standalone Coolify. Supprime la DB dans le compose (bm_dev_db_data) - retour a l architecture standalone correcte. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
bc06910708
commit
bf03647de6
1 changed files with 13 additions and 34 deletions
|
|
@ -1,21 +1,4 @@
|
|||
services:
|
||||
db:
|
||||
image: postgis/postgis:16-3.4
|
||||
environment:
|
||||
POSTGRES_DB: bm
|
||||
POSTGRES_USER: bm
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
volumes:
|
||||
- bm_dev_db_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- bm_internal
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U bm -d bm"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
command: ["redis-server", "--appendonly", "yes"]
|
||||
|
|
@ -31,24 +14,27 @@ services:
|
|||
CAPTCHA_SOLVER: none
|
||||
networks:
|
||||
- bm_internal
|
||||
- coolify
|
||||
labels:
|
||||
- traefik.enable=false
|
||||
restart: unless-stopped
|
||||
|
||||
crawler:
|
||||
build:
|
||||
context: apps/crawler
|
||||
environment:
|
||||
DATABASE_URL: postgres://bm:${POSTGRES_PASSWORD}@db:5432/bm
|
||||
DATABASE_URL: ${DATABASE_URL}
|
||||
FLARESOLVERR_URL: http://flaresolverr:8191
|
||||
CRAWLER_SCHED_INCREMENTAL_H: "4"
|
||||
CRAWLER_SCHED_ENRICH_H: "2"
|
||||
CRAWLER_SCHED_FULL_DAY: "0"
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
flaresolverr:
|
||||
condition: service_started
|
||||
- flaresolverr
|
||||
networks:
|
||||
- bm_internal
|
||||
- coolify
|
||||
labels:
|
||||
- traefik.enable=false
|
||||
restart: unless-stopped
|
||||
|
||||
geocoder-worker:
|
||||
|
|
@ -56,7 +42,7 @@ services:
|
|||
context: apps/geocoder
|
||||
working_dir: /app
|
||||
environment:
|
||||
DATABASE_URL: postgres://bm:${POSTGRES_PASSWORD}@db:5432/bm
|
||||
DATABASE_URL: ${DATABASE_URL}
|
||||
NOMINATIM_BASE: "https://nominatim.openstreetmap.org"
|
||||
NOMINATIM_EMAIL: ${NOMINATIM_EMAIL}
|
||||
NOMINATIM_USER_AGENT: ${NOMINATIM_USER_AGENT}
|
||||
|
|
@ -64,11 +50,11 @@ services:
|
|||
NOMINATIM_JITTER: "0.35"
|
||||
GEOCODE_MAX_PER_RUN: "5000"
|
||||
command: ["python", "src/worker.py"]
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- bm_internal
|
||||
- coolify
|
||||
labels:
|
||||
- traefik.enable=false
|
||||
restart: "no"
|
||||
|
||||
pgadmin:
|
||||
|
|
@ -79,9 +65,6 @@ services:
|
|||
PGADMIN_CONFIG_SERVER_MODE: "True"
|
||||
volumes:
|
||||
- bm_dev_pgadmin_data:/var/lib/pgadmin
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- bm_internal
|
||||
- coolify
|
||||
|
|
@ -99,12 +82,9 @@ services:
|
|||
context: apps/api
|
||||
environment:
|
||||
PORT: "3000"
|
||||
DATABASE_URL: postgres://bm:${POSTGRES_PASSWORD}@db:5432/bm
|
||||
DATABASE_URL: ${DATABASE_URL}
|
||||
BM_IMPORT_TOKEN: ${BM_IMPORT_TOKEN}
|
||||
CORS_ORIGINS: https://dev.metalfrom.eu
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- bm_internal
|
||||
- coolify
|
||||
|
|
@ -141,6 +121,5 @@ networks:
|
|||
name: coolify
|
||||
|
||||
volumes:
|
||||
bm_dev_db_data:
|
||||
bm_dev_redis_data:
|
||||
bm_dev_pgadmin_data:
|
||||
|
|
|
|||
Loading…
Reference in a new issue