Update docker-compose.yml - use different port numbers to avoid conflicts: factsdb on 2122, ftp on 2123
This commit is contained in:
parent
190c2461db
commit
11019d5ca3
@ -5,7 +5,7 @@ services:
|
||||
build: .
|
||||
ports:
|
||||
- "5000:5000"
|
||||
- "2121:2121"
|
||||
- "2122:2121"
|
||||
volumes:
|
||||
- ./facts.db:/app/facts.db
|
||||
- ./data:/app/data
|
||||
@ -19,3 +19,21 @@ services:
|
||||
- DATABASE_PATH=/app/facts.db
|
||||
restart: unless-stopped
|
||||
command: python -m factsdb.main api
|
||||
|
||||
ftp:
|
||||
build: .
|
||||
ports:
|
||||
- "2123:2121"
|
||||
volumes:
|
||||
- ./facts.db:/app/facts.db
|
||||
- ./data:/app/data
|
||||
environment:
|
||||
- FTP_HOST=0.0.0.0
|
||||
- FTP_PORT=2121
|
||||
- FTP_USERNAME=factsdb
|
||||
- FTP_PASSWORD=factsdb
|
||||
- AI_ENDPOINT_URL=http://example.com:4000/v1/chat/completions
|
||||
- AI_ENDPOINT_TOKEN=111
|
||||
- DATABASE_PATH=/app/facts.db
|
||||
restart: unless-stopped
|
||||
command: python -m factsdb.main ftp
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user