Skip to content

Commit 7d93d5d

Browse files
committed
add additional docker-compose files for different OS. Downgrade Flask back to 2.0.3 as 2.3 is incompatible with other deps.
1 parent b3f2ede commit 7d93d5d

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

docker-compose.mac.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# For Macs, there is a default program that uses port 5000, so we need to change the port to 5001.
2+
3+
version: '3'
4+
5+
services:
6+
app:
7+
build:
8+
context: .
9+
dockerfile: Dockerfile
10+
volumes:
11+
- ./src/components:/app/components
12+
- ./src/settings.py:/app/settings.py
13+
ports:
14+
- "5001:5000"
15+
network_mode: 'host'
16+
entrypoint: python3 tvwb.py

docker-compose.windows.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# For windows, we need to use network_mode: 'bridge' instead of network_mode: 'host'
2+
3+
version: '3'
4+
5+
services:
6+
app:
7+
build:
8+
context: .
9+
dockerfile: Dockerfile
10+
volumes:
11+
- ./src/components:/app/components
12+
- ./src/settings.py:/app/settings.py
13+
ports:
14+
- "5000:5000"
15+
network_mode: 'bridge'
16+
entrypoint: python3 tvwb.py

0 commit comments

Comments
 (0)