Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- # Databases and stuff
- redis:
- image: redis:2.8
- command: redis-server
- volumes:
- - ./docker/redis/data:/data
- memcached:
- image: memcached
- mysql:
- image: mysql:latest
- environment:
- - MYSQL_ROOT_PASSWORD=secret
- - MYSQL_PASSWORD=secret
- - MYSQL_USER=ai
- - MYSQL_DATABASE=ai
- volumes:
- - ./docker/mysql/data:/var/lib/mysql
- # Generic container to run AI code
- ai:
- hostname: shell
- build:
- context: .
- volumes:
- - .:/root/ai
- ray-head:
- extends: ai
- command: ray start --head --redis-port=6379
- restart: always
- links:
- - redis
- ray-server:
- extends: ai
- command: ray start --redis-address=redis:6379
- restart: always
- links:
- - redis
- # Shell
- shell:
- extends: ai
- command: bash
- links:
- - redis
- - memcached
- - mysql
Add Comment
Please, Sign In to add comment