Skip to content

Commit 9cdf629

Browse files
braktarfrodrigo
authored andcommitted
docker-compose remove deprecated links feature -> networks
1 parent 8d4f41e commit 9cdf629

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

config/environments/development.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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',

docker-compose.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff 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

2422
services:
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 ""

0 commit comments

Comments
 (0)