Created
February 25, 2017 20:21
-
-
Save slpsys/198704b444fce38cff88dea6b9f0dbc7 to your computer and use it in GitHub Desktop.
Broadside config for load-balanced service, with preconfigured ELB named 'redshift-console-elb'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Broadside.configure do |config| | |
config.application = 'redshift_console' | |
config.default_docker_image = # image location | |
config.aws.ecs_default_cluster = # cluster name | |
config.targets = { | |
production_web: { | |
scale: 1, | |
env_file: '.env.production', | |
service_config: { | |
role: 'ecsServiceRole', | |
load_balancers: [ | |
{ | |
container_name: 'redshift_console_production_web', # config.application + _ + target | |
container_port: 5000, | |
load_balancer_name: 'redshift-console-elb' # already created | |
} | |
] | |
}, | |
task_definition_config: { | |
container_definitions: [ | |
{ | |
port_mappings: [ | |
{ | |
container_port: 5000, | |
host_port: 5000 | |
} | |
], | |
cpu: 64, | |
memory: 200 | |
} | |
] | |
} | |
} | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment