Fix docker-compose.yml to ensure FTP service runs properly
This commit is contained in:
parent
9c7ca7209f
commit
e775d8de81
@ -20,18 +20,21 @@ services:
|
||||
restart: unless-stopped
|
||||
command: python -m factsdb.main api
|
||||
|
||||
# Optional: Add a separate service for FTP if needed
|
||||
# ftp:
|
||||
# build: .
|
||||
# ports:
|
||||
# - "2121: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
|
||||
# restart: unless-stopped
|
||||
# command: python -m factsdb.main ftp
|
||||
# Separate FTP service for when you need direct FTP access
|
||||
ftp:
|
||||
build: .
|
||||
ports:
|
||||
- "2121: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