Skip to main content

.env files

Below you can find a list of different .env files used in the project along with description of it's content.

Common values used in .env, .env.shared files:

info

SHIPFAST_HOSTED_ZONE_ID and SHIPFAST_HOSTED_ZONE_NAME can be skipped if you are using externally managed DNS. In that case, certificates for CloudFront distribution and Load Balancer should be already generated, and their ARNs provided in SHIPFAST_CLOUDFRONT_CERTIFICATE_ARN and SHIPFAST_LOAD_BALANCER_CERTIFICATE_ARN parameters. As the last step, CNAME DNS records pointing to CloudFront distribution and Load Balancer need to be manually added.

NameDescriptionExample
PROJECT_NAMEThe name of your project (best if 3-5 characters to avoid AWS names being to long)saas
AWS_DEFAULT_REGIONDefault AWS region for you applicationeu-west-1
COMPOSE_PATH_SEPARATORCheck official docker-compose documentation:
COMPOSE_FILECheck official docker-compose documentationdocker-compose.yml:docker-compose.local.yml
SHIPFAST_HOSTED_ZONE_IDId of a AWS Route53 hosted zone of a domain used to host services of this environment``
SHIPFAST_HOSTED_ZONE_NAMEName of a AWS Route53 hosted zone of a domain used to host services of this environmentexample.com
SHIPFAST_DOMAIN_ADMIN_PANELA domain used to host an admin panel serviceadmin.example.com
SHIPFAST_DOMAIN_APIA domain used to host an API backend serviceapi.example.com
SHIPFAST_DOMAIN_WEB_APPA domain used to host the web applicationapp.example.com
SHIPFAST_DOMAIN_DOCSA domain used to host the documentationdocs.example.com
SHIPFAST_DOMAIN_CDNA domain used to static assets deliverycdn.example.com

.env

caution

This file should not be committed to the repository

Apart from the common values this file should contain following values:

NameDescriptionExample
const dir = resolve(stdout, '..', '.shipfast');

| AWS_VAULT_PROFILE | Name of your AWS vault profile. Learn more about AWS vault here | shipfast | | NX_BRANCH | | local |

.env.shared

info

Content of this file doesn't contain any additional values other than common values described above.

.env.test

Apart from the common values this file should contain following values:

NameDescriptionExample
VERSIONtest