Skip to content

Instantly share code, notes, and snippets.

@sfrancavilla
Created May 13, 2019 18:47
Show Gist options
  • Select an option

  • Save sfrancavilla/0d1615e5a5091cfc84913926a31be40f to your computer and use it in GitHub Desktop.

Select an option

Save sfrancavilla/0d1615e5a5091cfc84913926a31be40f to your computer and use it in GitHub Desktop.
Deploy Ruby on Rails apps (+ NGINX) to ECS with Docker - Medium
version: '3'
services:
app:
# 1.Repository URI for our app image
image: XXXXXXXXXX.dkr.ecr.eu-west-1.amazonaws.com/ror-ecs-app
build:
context: .
dockerfile: ./docker/app/Dockerfile
web:
# 2.Repository URI for our web image
image: XXXXXXXXXX.dkr.ecr.eu-west-1.amazonaws.com/ror-ecs-web
build:
context: .
dockerfile: ./docker/web/Dockerfile
links:
- app
ports:
- 80:80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment