Skip to content

Commit

Permalink
Merge pull request #394 from MaRDI4NFDI/activate_importer_api
Browse files Browse the repository at this point in the history
Activate importer API
  • Loading branch information
eloiferrer authored Sep 8, 2023
2 parents 44ba1c8 + cbfe282 commit 5561460
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ services:
importer:
restart: ${RESTART}

importer-api:
ports:
- "5000:80"
restart: ${RESTART}

elasticsearch:
restart: ${RESTART}
environment:
Expand Down
24 changes: 24 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 5561460

Please sign in to comment.