Skip to content

Commit 05ac620

Browse files
use port 5050 by default--airplay uses 5000
1 parent 9cab00a commit 05ac620

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

app/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ COPY . /app
3939
# Make the prebuild.sh script executable
4040
RUN chmod +x .tmp/prebuild.sh
4141

42-
# Expose port 5000 for the Flask application
43-
EXPOSE 5000
42+
# Expose port 5050 for the Flask application
43+
EXPOSE 5050
4444

4545
# Define environment variable for Flask
4646
ENV FLASK_APP=app.py
4747

4848
# Run the application using uWSGI
49-
CMD ["uwsgi", "--http", "0.0.0.0:5000", "--wsgi-file", "app.py", "--callable", "app", "--processes", "4", "--threads", "2"]
49+
CMD ["uwsgi", "--http", "0.0.0.0:5050", "--wsgi-file", "app.py", "--callable", "app", "--processes", "4", "--threads", "2"]

app/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,4 @@ def trigger_rebuild():
9898
return jsonify({"error": "Internal Server Error"}), 500
9999

100100
if __name__ == '__main__':
101-
app.run(host='0.0.0.0', port=5000)
101+
app.run(host='0.0.0.0', port=5050)

compose.dev.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ services:
44
context: ./app
55
shm_size: "16gb"
66
ports:
7-
- target: 5000
8-
published: 5001 # MacOS AirPlay uses port 5000
7+
- target: 5050
8+
published: 5050 # MacOS AirPlay uses port 5000
99
protocol: tcp
1010
mode: ingress
1111
environment:
@@ -14,7 +14,7 @@ services:
1414
SEGMENT_WRITE_KEY: ${SEGMENT_WRITE_KEY} # Set your Segment write key here or in the .env file
1515
SESSION_COOKIE_SECURE: 0
1616
OPENAI_API_KEY: ${OPENAI_API_KEY} # Set your OpenAI API key here or in the .env file
17-
command: flask run --host=0.0.0.0
17+
command: flask run --host=0.0.0.0 --port=5050
1818
deploy:
1919
resources:
2020
reservations:

compose.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ services:
77
context: ./app
88
shm_size: "16gb"
99
ports:
10-
- target: 5000
11-
published: 5000
10+
- target: 5050
11+
published: 5050
1212
protocol: tcp
1313
mode: ingress
1414
environment:
@@ -17,13 +17,13 @@ services:
1717
SEGMENT_WRITE_KEY:
1818
SESSION_COOKIE_SECURE: 1
1919
OPENAI_API_KEY: ${OPENAI_API_KEY} # Set your OpenAI API key here or in the .env file
20-
command: uwsgi --http 0.0.0.0:5000 --wsgi-file app.py --callable app --processes 4 --threads 2
20+
command: uwsgi --http 0.0.0.0:5050 --wsgi-file app.py --callable app --processes 4 --threads 2
2121
deploy:
2222
resources:
2323
reservations:
2424
memory: 4G
2525
healthcheck:
26-
test: ["CMD", "curl", "-f", "http://localhost:5000/"]
26+
test: ["CMD", "curl", "-f", "http://localhost:5050/"]
2727
interval: 30s
2828
timeout: 10s
2929
retries: 5

0 commit comments

Comments
 (0)