Skip to content

Commit

Permalink
docker and env prod sample
Browse files Browse the repository at this point in the history
  • Loading branch information
yanikproulx committed Jan 30, 2024
1 parent 1baddee commit db5b3a5
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .env.prod.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
PORT=3002

# Backend
NEXT_PUBLIC_GRAPHQL_URI="https://back.marathon.perimetre.dev/graphql"
NEXT_PUBLIC_STATUS_URI="https://back.marathon.perimetre.dev/v1/status"

# Unity
NEXT_PUBLIC_UNITY_PUBLIC_FOLDER="unity"
NEXT_PUBLIC_UNITY_BUILD_NAME="WebGL"
NEXT_PUBLIC_UNITY_COMPANY_NAME="Marathon"
NEXT_PUBLIC_UNITY_PRODUCT_NAME="Space Planner"
NEXT_PUBLIC_UNITY_PRODUCT_VERSION="0.11"

# Sentry
NEXT_PUBLIC_SENTRY_DSN=""

# Unity Player
NEXT_PUBLIC_UNITY_PUBLIC_MEDIA_URI="https://marathon-space-planner-dev01.nyc3.digitaloceanspaces.com"
NEXT_PUBLIC_UNITY_ASSET_BUNDLE_FOLDER="asset-bundles"
NEXT_PUBLIC_UNITY_DEFAULT_PLATFORM="webgl"
NEXT_PUBLIC_UNITY_MODULE_MATERIALS_FOLDER="materials/modules"
NEXT_PUBLIC_UNITY_MANIFEST_ASSET_NAME="WebGL"

# Marathon
NEXT_PUBLIC_MARATHON_API="https://www.marathonhardware.com"
NEXT_PUBLIC_MARATHON_API_LIST="/action/account/listdetail"
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ yarn-error.log*

# Sentry
.sentryclirc

# Docker
docker-compose.yml
.env
28 changes: 28 additions & 0 deletions docker-compose.prod.sample.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: '3.7'

services:
front:
container_name: marathon-front
restart: always
build:
context: .
args:
NEXT_PUBLIC_DEFAULT_LOCALE: ${NEXT_PUBLIC_DEFAULT_LOCALE}
NEXT_PUBLIC_GRAPHQL_URI: ${NEXT_PUBLIC_GRAPHQL_URI}
NEXT_PUBLIC_STATUS_URI: ${NEXT_PUBLIC_STATUS_URI}
NEXT_PUBLIC_UNITY_PUBLIC_FOLDER: ${NEXT_PUBLIC_UNITY_PUBLIC_FOLDER}
NEXT_PUBLIC_UNITY_BUILD_NAME: ${NEXT_PUBLIC_UNITY_BUILD_NAME}
NEXT_PUBLIC_UNITY_COMPANY_NAME: ${NEXT_PUBLIC_UNITY_COMPANY_NAME}
NEXT_PUBLIC_UNITY_PRODUCT_NAME: ${NEXT_PUBLIC_UNITY_PRODUCT_NAME}
NEXT_PUBLIC_UNITY_PRODUCT_VERSION: ${NEXT_PUBLIC_UNITY_PRODUCT_VERSION}
NEXT_PUBLIC_UNITY_PUBLIC_MEDIA_URI: ${NEXT_PUBLIC_UNITY_PUBLIC_MEDIA_URI}
NEXT_PUBLIC_UNITY_ASSET_BUNDLE_FOLDER: ${NEXT_PUBLIC_UNITY_ASSET_BUNDLE_FOLDER}
NEXT_PUBLIC_UNITY_DEFAULT_PLATFORM: ${NEXT_PUBLIC_UNITY_DEFAULT_PLATFORM}
NEXT_PUBLIC_UNITY_MODULE_MATERIALS_FOLDER: ${NEXT_PUBLIC_UNITY_MODULE_MATERIALS_FOLDER}
NEXT_PUBLIC_UNITY_MANIFEST_ASSET_NAME: ${NEXT_PUBLIC_UNITY_MANIFEST_ASSET_NAME}
NEXT_PUBLIC_MARATHON_API: ${NEXT_PUBLIC_MARATHON_API}
NEXT_PUBLIC_MARATHON_API_LIST: ${NEXT_PUBLIC_MARATHON_API_LIST}
env_file:
- .env
ports:
- '${PORT}:${PORT}'

0 comments on commit db5b3a5

Please sign in to comment.