Last active
September 7, 2020 17:01
-
-
Save avielb/5a6e2427587a5322e7e6431353680631 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
from flask import Flask | |
app = Flask(__name__) | |
@app.route('/') | |
def hello_world(): | |
return 'Hello! I am a Flask application' | |
if __name__ == '__main__)': | |
app.run(host='0.0.0.0') | |
docker network create wordpress | |
docker container run --name mysql-container --rm --network wordpress -e MYSQL_ROOT_PASSWORD=wordpress -d mysql:5.7 | |
docker container run --name wordpress-container --rm --network wordpress -e WORDPRESS_DB_HOST=mysql-container -e WORDPRESS_DB_PASSWORD=wordpress -p 8090:80 -d wordpress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment