Vibecat in Docker
An image on Amazon Corretto 21 Alpine in the layout of a classic Tomcat.
| In the container | Content |
|---|---|
/opt/vibecat | the program (part of the image) |
/usr/local/tomcat/conf | vibecat.json, tomcat-users.xml, API keys (volume) |
/usr/local/tomcat/webapps | WAR files or exploded folders; put one there and it is deployed (volume) |
/usr/local/tomcat/data | plug-in data, uploads, work files, logs (volume) |
/usr/local/tomcat/lib | extra jars such as JDBC drivers (optional bind mount) |
docker build -f docker/Dockerfile -t vibecat:latest . docker run -d --name vibecat --init -p 8080:8080 -p 8090:8090 \ -v vibecat-conf:/usr/local/tomcat/conf -v vibecat-webapps:/usr/local/tomcat/webapps -v vibecat-data:/usr/local/tomcat/data vibecat:latest docker logs vibecat # the first start prints the generated password of admin
Nothing is required in the environment: an unset variable leaves vibecat.json in charge, a set one wins at every start, and NAME_FILE reads a value from a file (Docker secrets). The full list (ports, CA, certificates, registry, users, folders) is in docker/ENVIRONMENT.md; compose files and run scripts are in samples/docker.