Last active
February 7, 2020 00:51
-
-
Save NAKKA-K/049b5a1cb44c0ca1cb39cdf534f4503b to your computer and use it in GitHub Desktop.
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
{ | |
"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