I want to deploy a docker compose application on client side premises and I want to protect the source code and the names of technologies

Joined
Jan 2, 2025
Messages
1
Reaction score
0
I have a docker compose application which is pulling different images and then mounting few config files to them with my django application which is itself a service and utilizing those services to build something useful. I need to deploy it on client side and on their VM. That project actually needs integration from different client side devices(their digital asset) to get their logs and perform analysis on them. How can I deploy the docker compose file there without making the code or compose file content visible. In fact I want to make it easier to change some variables in my django app as the IP addresses of the digital assets might change. Help me solve this problem. The services are 12 in total including Logstash, Elasticsearch, Kibana , Kafka, rabbitmq, celery, etc etc.

I tried the nested containers approach to create a single image and then when running a container from that image that container will run docker compose inside it which can run 12 containers inside that container but this is getting too much complex as I want to persist the data of some databases in the services by making their volumes so I guess I will need to make a compose file on the host machine which will mount the volumes of volumes made by the main container on the host. Too much complicated isn't it?
 
Joined
Sep 21, 2022
Messages
205
Reaction score
28
I don't know anything about docker compose, but this kind of situation has a general solution.

If you must give source code to your client to run, but you don't want it to be human-readable, you could run it through a program that strips away all things humans like to see, and leave the bare minimum the computer needs. Then you keep your original source code, and give them the runnable but unreadable version.

Replace all variable and function names with names like x37.

Get rid of indenting, and all white space. Delete all comments, obviously.

If the language permits variable names to be 100 characters long, then use it.

There are many ways to disguise string literals.

And so on.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,125
Messages
2,570,748
Members
47,301
Latest member
SusannaCgx

Latest Threads

Top