Skip to content

Instantly share code, notes, and snippets.

View cthakar's full-sized avatar
🎯
Focusing

chintan cthakar

🎯
Focusing
View GitHub Profile
[general]
# Path to a public key to install on servers. If a usable key has not
# been installed on the remote servers, the user is prompted for a
# password and this key is installed so the password will not be
# required again.
CONFIG_SSH_KEY=/root/.ssh/id_rsa.pub
# Default password to be used everywhere (overridden by passwords set
# for individual services or users).
Here is the whole scenario :
I have one java based application it has two ports one is db and another one is web(application) ports.
I am running single container with blow commands
without docker-swarm :
docker run -it -d --name web1 -h "My Hostname" -p 9080:9080 -p 1521:1521 -v /home/web1/log:/opt/web1/jboss/server/log/ -v /home/web1/license:/opt/web1/jboss/server/license/ -v $JAVA_HOME:/opt/jdk/ MYIMAGE