Skip to content

Commit

Permalink
Update docker-compose file for deploying to ECS (prakhar1989#28)
Browse files Browse the repository at this point in the history
* move ecs files into a new folder

* basic version working

* added logging options

* cleanup
  • Loading branch information
prakhar1989 authored Apr 16, 2020
1 parent 65cb132 commit a7b7cee
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 12 deletions.
12 changes: 0 additions & 12 deletions aws-compose.yml

This file was deleted.

30 changes: 30 additions & 0 deletions aws-ecs/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: '2'
services:
es:
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2
cpu_shares: 100
mem_limit: 3621440000
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
logging:
driver: awslogs
options:
awslogs-group: foodtrucks
awslogs-region: us-east-1
awslogs-stream-prefix: es
web:
image: prakhar1989/foodtrucks-web
cpu_shares: 100
mem_limit: 262144000
ports:
- "80:5000"
links:
- es
logging:
driver: awslogs
options:
awslogs-group: foodtrucks
awslogs-region: us-east-1
awslogs-stream-prefix: web

0 comments on commit a7b7cee

Please sign in to comment.