Skip to content

Commit

Permalink
Edited compose file for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Enigma036 committed Sep 23, 2024
1 parent fb1dc0f commit 7f26ddb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 52 deletions.
4 changes: 2 additions & 2 deletions api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ def clear_image():
os.remove(os.path.join(OUTPUT_FOLDER, file))

if __name__ == "__main__":
#clear_image()
app.run(host="0.0.0.0", debug=True, port=5000, threaded=True)
clear_image()
app.run(host="0.0.0.0", debug=False, port=5000, threaded=True)
50 changes: 0 additions & 50 deletions client/README.md

This file was deleted.

8 changes: 8 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@ services:
context: api
dockerfile: Dockerfile
image: rebac-api
environment:
FLASK_ENV: production
depends_on:
- client
ports:
- "5000:5000"
client:
build:
context: client
dockerfile: Dockerfile
image: rebac-client
ports:
- "3000:80"
depends_on:
- api

0 comments on commit 7f26ddb

Please sign in to comment.