Running Tomcat with PostgreSql using Dockerfile -
i want run tomcat postgresql database within same dockerfile.
i have following dockerfile
from tomcat:8-jre7 maintainer "sonam <mymail@gmail.com>" run apt-get -y update add simplewebapp.war /usr/local/tomcat/webapps/ run apt-get update && apt-get -y upgrade postgres
when run docker image, can't access tomcat if comment out postgres. how postgres running , tomcat too?
thanks
you can take 1 image base, same can have 1 os installed.
if need have 2 applications installed, need build own container - either starting 1 , running sequence of commands in dockerfile need install other app, or start base os image, , install both.
alternatively - why need them in same container? --link
might want, more effectively. run 2 containers, , link them.
Comments
Post a Comment