You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
990 B

# docker-compose for redis service defined in ./redis
version: '3.7'
services:
redis:
build: ./redis
image: redis
ports:
- "6379:6379"
volumes:
- ./data:/data
networks:
- default
# eden server, started with python server.py, based on Dockerfile in cwd.
eden-server:
build: ./eden-server
image: eden-server
# ports:
# - "5656:5656"
2 years ago
# volumes:
# - /home/mm/.cache/torch/hub/checkpoints/resnet50-11ad3fa6.pth:/root/.cache/torch/hub/checkpoints/resnet50-11ad3fa6.pth
networks:
- default
depends_on:
- redis
# pass nvidia gpu
runtime: nvidia
environment:
- CUDA_VISIBLE_DEVICES=0
- NVIDIA_VISIBLE_DEVICES=0
# load-balancer:
# image: nginx
# ports:
# - "5656:80"
# volumes:
# - ./nginx.conf:/etc/nginx/nginx.conf:ro
# networks:
# - default
# depends_on:
# - eden-server
networks:
default:
name: eden-network
external: true