diff --git a/.env.prod.sample b/.env.prod.sample new file mode 100644 index 0000000..c1680d2 --- /dev/null +++ b/.env.prod.sample @@ -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" diff --git a/.gitignore b/.gitignore index 86484ed..e0983b2 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,7 @@ yarn-error.log* # Sentry .sentryclirc + +# Docker +docker-compose.yml +.env diff --git a/docker-compose.prod.sample.yml b/docker-compose.prod.sample.yml new file mode 100644 index 0000000..ce9e521 --- /dev/null +++ b/docker-compose.prod.sample.yml @@ -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}'