docker changes

This commit is contained in:
Min Zeya Phyo
2019-10-29 10:38:50 +06:30
parent 2e2117a820
commit d4a90d6563
2 changed files with 32 additions and 29 deletions

View File

@@ -83,6 +83,7 @@ namespace :deploy do
before :deploy, "deploy:run_tests"
# compile assets locally then rsync
after 'deploy:symlink:shared', 'deploy:compile_assets_locally'
Rake::Task["deploy:assets:precompile"].clear_actions
after :finishing, 'deploy:cleanup'

View File

@@ -1,31 +1,33 @@
version: '3'
services:
code2lab:
build:
context: .
dockerfile: ./Dockerfile
links:
- redis
volumes:
- .:/sxrestaurant
env_file:
- .code2lab.env
ports:
- '8082: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:
- '6380:6379'
volumes:
- ../data/redis:/data
code2lab:
build:
context: .
dockerfile: ./Dockerfile
links:
- redis
volumes:
- .:/sxrestaurant
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
env_file:
- .code2lab.env
ports:
- '62160:62158'
environment:
- REDIS_URL=redis://172.17.0.1:6380/0
sidekiq:
build: .
command: bundle exec sidekiq -C config/sidekiq.yml
links:
- redis
volumes:
- .:/sxrestaurant
environment:
- REDIS_URL=redis://172.17.0.1:6380/0
redis:
image: redis
ports:
- '6380:6379'
volumes:
- ../data/redis:/data