docker improvements

This commit is contained in:
2025-09-19 12:22:14 -05:00
parent ea56d33472
commit 385084dd7b
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ class InMemoryQCounter
#couch_settings = YAML.load_file(couch_settings_path)[environment] #couch_settings = YAML.load_file(couch_settings_path)[environment]
couch_settings = YAML.safe_load(ERB.new(File.read(couch_settings_path)).result, permitted_classes: [Symbol])[environment] couch_settings = YAML.safe_load(ERB.new(File.read(couch_settings_path)).result, permitted_classes: [Symbol])[environment]
database = couch_settings['database'] database = couch_settings['database']
database = database.sub 'localhost', 'host.docker.internal' unless environment == 'development' #database = database.sub 'localhost', 'host.docker.internal' unless environment == 'development'
#database = couch_settings['database'] #database = couch_settings['database']
#database = couch_settings['database'].sub 'localhost', '172.17.0.1' #database = couch_settings['database'].sub 'localhost', '172.17.0.1'
db = CouchRest.database(database) # for debug: db = CouchPotato.database.couchrest_database db = CouchRest.database(database) # for debug: db = CouchPotato.database.couchrest_database
+2 -1
View File
@@ -28,7 +28,8 @@ if [ $arch == "Darwin" ]; then
echo "Running the created image using the Mac Darwin port exposing" echo "Running the created image using the Mac Darwin port exposing"
docker run -p 9022:9022 --env DRB_ENV=production --env COUCHDB_ADMIN_PASSWORD=$COUCHDB_ADMIN_PASSWORD --add-host=host.docker.internal:host-gateway --restart unless-stopped --detach --name=mozo_drb_counter mozo_drb_counter docker run -p 9022:9022 --env DRB_ENV=production --env COUCHDB_ADMIN_PASSWORD=$COUCHDB_ADMIN_PASSWORD --add-host=host.docker.internal:host-gateway --restart unless-stopped --detach --name=mozo_drb_counter mozo_drb_counter
else else
docker run --network=host --env DRB_ENV=production --env COUCHDB_ADMIN_PASSWORD=$COUCHDB_ADMIN_PASSWORD --add-host=host.docker.internal:host-gateway --restart unless-stopped --detach --name=mozo_drb_counter mozo_drb_counter # docker run --network=host --env DRB_ENV=production --env COUCHDB_ADMIN_PASSWORD=$COUCHDB_ADMIN_PASSWORD --add-host=host.docker.internal:host-gateway --restart unless-stopped --detach --name=mozo_drb_counter mozo_drb_counter
docker run --network=host --env DRB_ENV=production --env COUCHDB_ADMIN_PASSWORD=$COUCHDB_ADMIN_PASSWORD --restart unless-stopped --detach --name=mozo_drb_counter mozo_drb_counter
fi fi
# To just start the container created through al these steps without rebuilding them: # To just start the container created through al these steps without rebuilding them: