From cbfe2828798f8e185f9586c5f6dbc5123eea8469 Mon Sep 17 00:00:00 2001 From: Eloi Ferrer Date: Fri, 8 Sep 2023 07:43:37 +0000 Subject: [PATCH] activate importer api --- docker-compose-dev.yml | 5 +++++ docker-compose.yml | 24 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index 29b91b8..fc0bb4b 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -47,6 +47,11 @@ services: importer: restart: ${RESTART} + importer-api: + ports: + - "5000:80" + restart: ${RESTART} + elasticsearch: restart: ${RESTART} environment: diff --git a/docker-compose.yml b/docker-compose.yml index a0298fb..541742f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -145,6 +145,29 @@ services: - IMPORTER_PASS=${IMPORTER_PASS} entrypoint: "/app/start.sh" + importer-api: + image: ghcr.io/mardi4nfdi/importer-api:main + container_name: importer-api + restart: unless-stopped + links: + - wikibase + - mysql + depends_on: + - wikibase + networks: + default: + aliases: + - importer-api.svc + environment: + DB_HOST: mardi-mysql + MYSQL_USER: ${DB_API_USER} + MYSQL_PASSWORD: ${DB_API_PASS} + MYSQL_DATABASE: ${DB_NAME} + labels: + - traefik.http.routers.importer-api.rule=Host(`importer.portal.mardi4nfdi.${TLD}`) + - traefik.http.routers.importer-api.entrypoints=websecure + - traefik.http.routers.importer-api.tls.certResolver=le + backup: image: ghcr.io/mardi4nfdi/docker-backup:main container_name: mardi-backup @@ -476,6 +499,7 @@ services: - traefik.http.routers.nginx.entrypoints=websecure - traefik.http.routers.nginx.tls.certResolver=le - traefik.http.routers.nginx.middlewares=auth + scholia: image: ghcr.io/mardi4nfdi/scholia:nightly labels: