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

34 lines
1,015 B
YAML
Raw Normal View History

2024-08-25 21:55:08 +02:00
version: '3.1'
services:
rust-proto-fastapi-server:
build: ../build/rust-proto-fastapi-server
container_name: rust-proto-fastapi-server
restart: always
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
networks:
- protoRustNet
deb-rust-proto-interface:
build: ../build/deb-rust-proto-interface
container_name: deb-rust-proto-interface
restart: always
environment:
- RUST_BACKTRACE=full
ports:
- "127.0.0.1:1030:7050"
networks:
- protoRustNet
networks:
protoRustNet:
driver: bridge