Skip to content

Commit c6a6787

Browse files
committed
changed port to 5050 for macos compatibaility. Port 5000 is uesed by airdrop... yay...
1 parent d6b7861 commit c6a6787

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

.idea/LGSM-WebGUI.iml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ RUN pip install python-dotenv
1616

1717

1818
# Expose port and run Flask
19-
EXPOSE 5000
20-
CMD ["python3", "-m", "flask", "run", "--host=0.0.0.0"]
19+
EXPOSE 5050
20+
CMD ["python3", "-m", "flask", "run", "--host=0.0.0.0", "--port=5050"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ I was struggling a lot in making an API that would work properly from my lack of
1010
## Build Info
1111

1212
1. Build the container: `docker build -t webgsm .`
13-
2. Run the Container: `docker run -d -p 5000:5000 -v /var/run/docker.sock:/var/run/docker.sock webgsm`
13+
2. Run the Container: `docker run -d -p 5050:5050 -v /var/run/docker.sock:/var/run/docker.sock webgsm`
1414
3. Access the Web App: Open a browser and go to `http://localhost:5000/frontend/index.html`
1515

1616
Notes:

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ def game(game_name):
3232
return "Game not found", 404
3333

3434
if __name__ == '__main__':
35-
app.run(debug=True, host='0.0.0.0', port=5000)
35+
app.run(debug=True, host='0.0.0.0', port=5050)

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
context: . # Build the image using the Dockerfile in the current directory
77
dockerfile: Dockerfile # Specifies the name of the Dockerfile (optional if named 'Dockerfile')
88
ports:
9-
- "5000:5000" # Map container port 5000 to local port 5000, allowing access to the Flask app from the browser at localhost:5000
9+
- "5050:5050" # Map container port 5000 to local port 5000, allowing access to the Flask app from the browser at localhost:5000
1010
restart: always # Ensure the container always restarts if it stops or crashes
1111
logging:
1212
driver: "json-file"

0 commit comments

Comments
 (0)