Spaces:
Sleeping
Sleeping
File size: 677 Bytes
27cdb3e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | version: '3.8'
services:
sandbox:
build:
context: .
dockerfile: Dockerfile.sandbox
image: devops-sandbox:latest
container_name: devops-sandbox
mem_limit: 512m
cpus: 1.0
restart: "no"
command: sleep infinity
api:
build:
context: ..
dockerfile: docker/Dockerfile.api
image: devops-rl-api:latest
container_name: devops-rl-api
ports:
- "8000:8000"
volumes:
- ../:/app
- /var/run/docker.sock:/var/run/docker.sock
environment:
- REPLAY_DB_URL=sqlite:///data/replay_buffer.db
depends_on:
- sandbox
command: uvicorn api.main:app --host 0.0.0.0 --port 8000 --reload
|