Skip to content

Instantly share code, notes, and snippets.

@NAKKA-K
Last active February 7, 2020 00:51
Show Gist options
  • Save NAKKA-K/049b5a1cb44c0ca1cb39cdf534f4503b to your computer and use it in GitHub Desktop.
Save NAKKA-K/049b5a1cb44c0ca1cb39cdf534f4503b to your computer and use it in GitHub Desktop.
{
"AWSEBDockerrunVersion": 2,
"volumes": [
{
"name": "backend_src",
"host": {
"sourcePath": "/var/app/current/backend"
}
}
],
"containerDefinitions": [
{
"name": "api",
"image": "example/example-image:latest",
"hostname": "api",
"memory": 450,
"portMappings": [
{
"hostPort": 8080,
"containerPort": 8080
}
],
"mountPoints": [
{
"sourceVolume": "backend_src",
"containerPath": "/backend"
}
],
"environment": [
{
"name": "RAILS_ENV",
"value": "production"
}
]
},
{
"name": "frontend",
"image": "example/example-image:latest",
"hostname": "frontend",
"memory": 450,
"portMappings": [
{
"hostPort": 80,
"containerPort": 3000
}
],
"links": [
"api"
],
"environment": [
{
"name": "NODE_ENV",
"value": "production"
},
{
"name": "API_URL",
"value": "http://api:8080/"
},
{
"name": "API_URL_BROWSER",
"value": "https://example.com:8080/"
},
{
"name": "WS_URL",
"value": "wss://example.com:8080/cable"
}
],
"command": [
"npm",
"run",
"start"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment