Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
JWT_SECRET= # generate-a-random-256-bit-key

# S3 form seeding on startup
FORMS_CONFIG_BUCKET_NAME= # S3 bucket holding YAML form definitions (e.g. forms-config)
FORMS_API_SLUGS= # comma-separated slugs to load, e.g. example-grant-with-auth,farm-payments

# Default form metadata values (used when not present in the YAML form definition metadata)
DEFAULT_FORM_ORGANISATION=Defra
DEFAULT_FORM_TEAM_NAME=Digital Delivery
DEFAULT_FORM_TEAM_EMAIL=digitaldelivery@defra.gov.uk
DEFAULT_FORM_NOTIFICATION_EMAIL=digitaldelivery@defra.gov.uk
13 changes: 10 additions & 3 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@ services:
localstack:
image: localstack/localstack:3.0.2
ports:
- '4566:4566' # LocalStack Gateway
- '4510-4559:4510-4559' # external services port range
- '4566:4566'
- '4510-4559:4510-4559'
env_file:
- 'localstack/aws.env'
environment:
DEBUG: ${DEBUG:-1}
LS_LOG: WARN # Localstack DEBUG Level
LS_LOG: WARN
SERVICES: s3,sqs,sns,firehose
LOCALSTACK_HOST: 127.0.0.1
volumes:
- '${TMPDIR:-/tmp}/localstack:/var/lib/localstack'
- ./localstack/start-localstack.sh:/etc/localstack/init/ready.d/start-localstack.sh
- ./localstack/forms:/etc/localstack/forms:ro
healthcheck:
test: ['CMD', 'curl', 'localhost:4566']
interval: 5s
Expand Down Expand Up @@ -85,6 +86,12 @@ services:
LOCALSTACK_ENDPOINT: http://localstack:4566
MONGO_URI: ${MONGO_URI:-mongodb://mongodb:27017/}
JWT_SECRET: ${JWT_SECRET:-config-api-jwt-secret}
FORMS_CONFIG_BUCKET_NAME: ${FORMS_CONFIG_BUCKET_NAME:-forms-config}
FORMS_API_SLUGS: ${FORMS_API_SLUGS:-example-grant-with-auth}
DEFAULT_FORM_ORGANISATION: ${DEFAULT_FORM_ORGANISATION:-Defra}
DEFAULT_FORM_TEAM_NAME: ${DEFAULT_FORM_TEAM_NAME:-Digital Delivery}
DEFAULT_FORM_TEAM_EMAIL: '${DEFAULT_FORM_TEAM_EMAIL:-digitaldelivery@defra.gov.uk}'
DEFAULT_FORM_NOTIFICATION_EMAIL: '${DEFAULT_FORM_NOTIFICATION_EMAIL:-digitaldelivery@defra.gov.uk}'
networks:
- grants-ui-config-api-net
volumes:
Expand Down
Loading
Loading