Skip to content

Commit b784736

Browse files
committed
Update flask for ec2 and fargate
1 parent 4899779 commit b784736

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
build:
88
context: .
99
ports:
10-
- 81:5000
10+
- 5000:5000
1111
volumes:
1212
- ./logs:/code/logs
1313
- .:/code

docker_quickstart.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
from flask import Flask
23
app = Flask(__name__)
34

@@ -7,7 +8,11 @@ def hello_world():
78

89
@app.route('/fargate')
910
def hello_fargate():
10-
return 'Hello Fargate! asd'
11+
return 'Hello Fargate!'
12+
13+
@app.route('/ec2')
14+
def hello_fargate():
15+
return 'Hello ECS on EC2!'
1116

1217
if __name__ == '__main__':
1318
app.run(debug=True,host='0.0.0.0')

0 commit comments

Comments
 (0)