basabuuka-prototype-rust-dc/compose/docker-compose.yml

45 lines
1.5 KiB
YAML
Raw Normal View History

2024-08-25 21:55:08 +02:00
services:
2024-09-16 15:04:52 +02:00
tf-fastapi-server:
2024-08-25 21:55:08 +02:00
2024-09-16 15:04:52 +02:00
build: ../build/tf-fastapi-server
container_name: tf-fastapi-server
2024-08-25 21:55:08 +02:00
restart: always
volumes:
2024-09-16 15:04:52 +02:00
- ../build/tf-fastapi-server/Prototyp:/home/pluritonian/Prototyp
2024-08-25 21:55:08 +02:00
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
networks:
- protoRustNet
2024-09-16 15:04:52 +02:00
deb-rust-interface:
build: ../build/deb-rust-interface
container_name: deb-rust-interface
2024-08-25 21:55:08 +02:00
restart: always
volumes:
2024-09-16 15:04:52 +02:00
- ../build/deb-rust-interface/rust-proto-interface:/opt/rust-proto-interface
2024-08-25 21:55:08 +02:00
environment:
- RUST_BACKTRACE=full
ports:
- "127.0.0.1:1030:7050"
networks:
- protoRustNet
ollama-cli-server:
build: ../build/ollama-cli-server
container_name: ollama-cli-server
restart: always
volumes:
- ../build/ollama-cli-server/fastapiserver:/opt/fastapiserver
networks:
- protoRustNet
2024-08-25 21:55:08 +02:00
networks:
protoRustNet:
driver: bridge