Skip to content

Commit b3b17f2

Browse files
committed
Update README.md
1 parent c068035 commit b3b17f2

24 files changed

+24
-0
lines changed

Diff for: README.md

+24
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,27 @@ Run:
2727
docker run -it --name crud-flask-mysql -p 80:80 muhammadhanif/crud-flask-mysql
2828
```
2929
Open http://your-host-ip-address in browser.
30+
31+
Or you can execute the following [docker-compose](https://raw.githubusercontent.com/muhammadhanif/crud-application-using-flask-and-mysql/master/docker-compose/docker-compose.yaml):
32+
33+
```
34+
version: '2'
35+
services:
36+
37+
phonebook-mysql:
38+
container_name: phonebook-mysql
39+
image: muhammadhanif/phonebook:mysql
40+
41+
phonebook-flask:
42+
container_name: phonebook-flask
43+
image: muhammadhanif/phonebook:flask
44+
ports:
45+
- "8181:8181"
46+
working_dir: /hnf/source_code
47+
command: python server.py
48+
links:
49+
- phonebook-mysql
50+
```
51+
52+
 
53+
After executing, you will have 2 running cointainers on your Docker host: phonebook-flask and phonebook-mysql. For accessing the web application, open your browser and go to http://your-docker-host-ip-address:8181

Diff for: database/crud_flask.sql

100644100755
File mode changed.

Diff for: source_code/module/__init__.py

100644100755
File mode changed.

Diff for: source_code/module/database.py

100644100755
File mode changed.

Diff for: source_code/server.py

100644100755
File mode changed.

Diff for: source_code/static/css/AdminLTE.min.css

100644100755
File mode changed.

Diff for: source_code/static/css/_all-skins.min.css

100644100755
File mode changed.

Diff for: source_code/static/css/bootstrap.min.css

100644100755
File mode changed.

Diff for: source_code/static/css/dataTables.bootstrap.css

100644100755
File mode changed.

Diff for: source_code/static/fonts/glyphicons-halflings-regular.eot

100644100755
File mode changed.

Diff for: source_code/static/fonts/glyphicons-halflings-regular.svg

100644100755
File mode changed.

Diff for: source_code/static/fonts/glyphicons-halflings-regular.ttf

100644100755
File mode changed.

Diff for: source_code/static/fonts/glyphicons-halflings-regular.woff

100644100755
File mode changed.

Diff for: source_code/static/fonts/glyphicons-halflings-regular.woff2

100644100755
File mode changed.

Diff for: source_code/static/js/app.min.js

100644100755
File mode changed.

Diff for: source_code/static/js/bootstrap.min.js

100644100755
File mode changed.

Diff for: source_code/static/js/dataTables.bootstrap.min.js

100644100755
File mode changed.

Diff for: source_code/static/js/jquery-2.2.3.min.js

100644100755
File mode changed.

Diff for: source_code/static/js/jquery.dataTables.min.js

100644100755
File mode changed.

Diff for: source_code/templates/add.html

100644100755
File mode changed.

Diff for: source_code/templates/delete.html

100644100755
File mode changed.

Diff for: source_code/templates/error.html

100644100755
File mode changed.

Diff for: source_code/templates/index.html

100644100755
File mode changed.

Diff for: source_code/templates/update.html

100644100755
File mode changed.

0 commit comments

Comments
 (0)