File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 @@ -13,19 +13,19 @@ x-default-service: &default-service
1313 ROUTER_URL : ${ROUTER_URL:-http://localhost:8082/0.1}
1414 ROUTER_API_KEY : ${ROUTER_API_KEY:-demo}
1515 SENTRY_DSN : ${SENTRY_DSN:-}
16- links :
17- - redis-resque
18- # - redis-cache
1916 volumes :
2017 - .:/srv/app
21- - ./docker/production.rb:/srv/app/config/environments/production.rb
22- - ./docker/production.rb:/srv/app/config/environments/development.rb
18+ depends_on :
19+ - redis-resque
2320
2421services :
25- api :
22+ optimizer-server :
2623 << : *default-service
2724 ports :
2825 - " 8083:80" # HOST:CONTAINER, edit only HOST part
26+ networks :
27+ - private-network
28+ - public-network
2929 command : bundle exec puma -v -p 80 --pidfile 'server.pid'
3030 restart : unless-stopped
3131
@@ -35,14 +35,25 @@ services:
3535 << : *default-environment
3636 COUNT : 5
3737 QUEUES : DEFAULT
38+ networks :
39+ - private-network
3840 command : bundle exec rake resque:workers --trace
3941 restart : unless-stopped
4042
4143 redis-resque :
4244 image : redis:${REDIS_VERSION:-7-alpine}
45+ networks :
46+ - private-network
4347 command : redis-server --appendonly yes
4448 restart : unless-stopped
4549
50+ networks :
51+ private-network :
52+ external : false
53+
54+ public-network :
55+ name : public-network
56+
4657 # redis-cache:
4758 # image: redis:${REDIS_VERSION:-7-alpine}
4859 # command: redis-server --save ""
You can’t perform that action at this time.
0 commit comments