From 803c62cc0322301c85c74d01098da1fc23fab342 Mon Sep 17 00:00:00 2001 From: Krystof Date: Sun, 8 Dec 2024 15:40:35 +0100 Subject: [PATCH] chore(web): env file --- .env.web.docker.example | 7 +++++++ apps/web/.env.local.example | 7 +++++++ compose.yaml | 2 ++ 3 files changed, 16 insertions(+) create mode 100644 .env.web.docker.example create mode 100644 apps/web/.env.local.example diff --git a/.env.web.docker.example b/.env.web.docker.example new file mode 100644 index 00000000..ea83ae1d --- /dev/null +++ b/.env.web.docker.example @@ -0,0 +1,7 @@ +# Mapbox api key https://docs.mapbox.com/help/getting-started/access-tokens/ +NEXT_PUBLIC_MAPBOX_TOKEN= + +# Alternative to acquiring a Mapbox token, you can use `maplibre-gl` instead. Follow these steps: +# - Run `npm install maplibre-gl` +# - In the source, change all `import ... from 'react-map-gl'` to `import ... from 'react-map-gl/maplibre'` +# - Change the `mapStyle` prop of `` to `"https://demotiles.maplibre.org/style.json"` or a self-hosted URL diff --git a/apps/web/.env.local.example b/apps/web/.env.local.example new file mode 100644 index 00000000..ea83ae1d --- /dev/null +++ b/apps/web/.env.local.example @@ -0,0 +1,7 @@ +# Mapbox api key https://docs.mapbox.com/help/getting-started/access-tokens/ +NEXT_PUBLIC_MAPBOX_TOKEN= + +# Alternative to acquiring a Mapbox token, you can use `maplibre-gl` instead. Follow these steps: +# - Run `npm install maplibre-gl` +# - In the source, change all `import ... from 'react-map-gl'` to `import ... from 'react-map-gl/maplibre'` +# - Change the `mapStyle` prop of `` to `"https://demotiles.maplibre.org/style.json"` or a self-hosted URL diff --git a/compose.yaml b/compose.yaml index b1a23520..5f366bdf 100644 --- a/compose.yaml +++ b/compose.yaml @@ -8,6 +8,8 @@ services: restart: always ports: - 3000:3000 + env_file: + - ".env.web.docker" build: context: . dockerfile: ./Dockerfile