File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed
Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ module OptimizerWrapper
4848
4949 OptimizerLogger . level = ENV [ 'LOG_LEVEL' ] &.to_sym || :debug
5050 OptimizerLogger . with_datetime = true
51- OptimizerLogger . caller_location = ENV [ 'CALLER_LOCATION' ] . presence . to_sym || :relative
51+ OptimizerLogger . caller_location = ENV [ 'CALLER_LOCATION' ] . presence & .to_sym || :absolute
5252
5353 @@c = {
5454 product_title : 'Optimizers API' ,
Original file line number Diff line number Diff line change @@ -18,14 +18,15 @@ x-default-service: &default-service
1818 # - redis-cache
1919 volumes :
2020 - .:/srv/app
21- - ./docker/production.rb:/srv/app/config/environments/production.rb
22- - ./docker/production.rb:/srv/app/config/environments/development.rb
2321
2422services :
25- api :
23+ optimizer-server :
2624 << : *default-service
2725 ports :
2826 - " 8083:80" # HOST:CONTAINER, edit only HOST part
27+ networks :
28+ - private-network
29+ - public-network
2930 command : bundle exec puma -v -p 80 --pidfile 'server.pid'
3031 restart : unless-stopped
3132
@@ -35,14 +36,25 @@ services:
3536 << : *default-environment
3637 COUNT : 5
3738 QUEUES : DEFAULT
39+ networks :
40+ - private-network
3841 command : bundle exec rake resque:workers --trace
3942 restart : unless-stopped
4043
4144 redis-resque :
4245 image : redis:${REDIS_VERSION:-7-alpine}
46+ networks :
47+ - private-network
4348 command : redis-server --appendonly yes
4449 restart : unless-stopped
4550
51+ networks :
52+ private-network :
53+ external : false
54+
55+ public-network :
56+ name : public-network
57+
4658 # redis-cache:
4759 # image: redis:${REDIS_VERSION:-7-alpine}
4860 # command: redis-server --save ""
You can’t perform that action at this time.
0 commit comments