Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Run the project via docker compose

Kay Knöpfle edited this page Jan 21, 2023 · 3 revisions

Create a docker compose file

docker-compose.yml

services:
  frontend:
    image: "ghcr.io/meal-tiger/meal-tiger-frontend:main"
    environment:
      - REACT_APP_API_URL=http://localhost:8080
      - REACT_APP_OIDC_CONFIGURATION_ENDPOINT=http://localhost:8090/realms/master/.well-known/openid-configuration
      - REACT_APP_OIDC_CLIENT_ID=mealtiger
    ports:
      - 80:80

Configure the Project via environment variables

3 environment variables need to be specified, that the project runs correctly:

  • REACT_APP_API_URL
    • The URL, where your Backend is hosted
  • REACT_APP_OIDC_CONFIGURATION_ENDPOINT
    • The URL, where your OIDC-Provider specifies the Endpoints
  • REACT_APP_OIDC_CLIENT_ID
    • your OIDC client ID

starting the project

Now you can start the project via docker compose: docker compose up -d