Docker Setup

This commit is contained in:
Julian
2018-04-11 11:24:34 +06:30
parent 27e70f1a86
commit 8b2f36fbc5
6 changed files with 51 additions and 2 deletions

31
docker-compose.yml Normal file
View File

@@ -0,0 +1,31 @@
version: '3'
services:
code2lab:
build: .
links:
- redis
command: bundle exec puma -C config/puma.rb
volumes:
- .:/sxrestaurant
env_file:
- .code2lab.env
ports:
- '8081:62158'
environment:
- REDIS_URL=redis://redis:6379/0
sidekiq:
build: .
command: bundle exec sidekiq -C config/sidekiq.yml
links:
- redis
volumes:
- .:/sxrestaurant
environment:
- REDIS_URL=redis://redis:6379/0
redis:
image: redis
ports:
- '6379:6379'
volumes:
- ../data/redis:/data