G-man
G-man

Reputation: 11

How to use docker-compose with with tomcat

I am trying to set up a tomcat server. I need to edit some of the files within the docker container and want to know is there a way I can save these files so that if we're to do docker-compose up again on another machine it was used the edited files? One idea I had was to take the tomcat image to modify it then use the custom image in docker-compose. Or am I just overthinking this and having the edit those files manually is something that I just have to do. Also, I am relatively new to docker so any advice would be helpful.

Upvotes: 0

Views: 980

Answers (1)

VonC
VonC

Reputation: 1327034

Using your own custom version of the tomcat image is the simplest way to configure it to your specifications.

See for instance, as example of configurations:

Upvotes: 1

Related Questions