Dear Gitlab users, due to maintenance reasons, Gitlab will not be available on Thursday 30.09.2021 from 5:00 pm to approximately 5:30 pm.

Commit 51139082 authored by Stefan Probst's avatar Stefan Probst
Browse files

[skip-ci] add compose config to run frontend+backen locally

parent fc023834
Pipeline #190883 skipped
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
- GITLAB_BASE_URL
- GITLAB_REPOSITORY
- GITLAB_REPOSITORY_BRANCH
- GITLAB_ACCESS_TOKEN
- SSHOC_OPENAPI_DOCUMENT_URL
- NEXT_PUBLIC_SSHOC_BASE_URL
- NEXT_PUBLIC_SSHOC_API_BASE_URL
- NEXT_PUBLIC_RECAPTCHA_SITE_KEY
- NEXT_PUBLIC_MATOMO_BASE_URL
- NEXT_PUBLIC_MATOMO_SITE_ID
environment:
- SSHOC_API_BASE_URL=http://marketplace:8080
volumes:
- image_cache:/usr/src/app/.next/cache/images
ports:
- 3000:3000
networks:
- sshoc-marketplace-backend_default
volumes:
image_cache:
networks:
sshoc-marketplace-backend_default:
external: true
......@@ -926,7 +926,8 @@ export type DatasetCore = {
}
// const defaultBaseUrl = 'http://localhost:8080'
const defaultBaseUrl = process.env.NEXT_PUBLIC_SSHOC_API_BASE_URL
const defaultBaseUrl =
process.env.SSHOC_API_BASE_URL ?? process.env.NEXT_PUBLIC_SSHOC_API_BASE_URL
export { defaultBaseUrl as baseUrl }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment