workers Integer(ENV['WEB_CONCURRENCY'] || 2)
threads_count = Integer(ENV['MAX_THREADS'] || 5)
threads threads_count, threads_count

preload_app!

rackup      DefaultRackup
port        ENV['XA_LICHEN_PORT'] || 3000
environment ENV['RACK_ENV'] || 'development'

on_worker_boot do
end

workers Integer(ENV['WEB_CONCURRENCY'] || 2)
threads_count = Integer(ENV['MAX_THREADS'] || 5)
threads threads_count, threads_count

preload_app!

rackup      DefaultRackup
port        ENV['PORT']     || 3000
environment ENV['RACK_ENV'] || 'development'

on_worker_boot do
end

--- 
+++ 
@@ -5,7 +5,7 @@
 preload_app!
 
 rackup      DefaultRackup
-port        ENV['PORT']     || 3000
+port        ENV['XA_LICHEN_PORT'] || 3000
 environment ENV['RACK_ENV'] || 'development'
 
 on_worker_boot do
Configure a specific port for Docker Compose
