Servoy Docker builds for Servoy 5 - 8
2.5K
tomcat-oraclejava (oraclejava/tomcat/Dockerfile)
Note: These are examples showing how to use the tags. You should create your own Dockerfiles using these as examples, but only extend from the above 2 main tags. There is also a video tutorial available here: https://youtu.be/RVOpAntP2oM
Designed to be bundled together with Docker Compose, Docker Cloud, or other orchestration tool. This will deploy the Servoy Sample CRM for the Servoy Web Client.
Docker Compose file for above deployment: docker-compose.yml
version: '3'
services:
servoy:
container_name: Servoy8
image: 'itechpros/servoy:servoy_generic_demo_dynamic_db'
environment:
- JAVA_XMS=128m
- JAVA_XMX=1024m
links:
- db
depends_on:
- db
ports:
- '8080:8080'
db:
container_name: Postgres
image: 'itechpros/servoy:servoy_generic_demo_dynamic_db_pg'
environment:
- POSTGRES_DB=servoyworld_2017
- POSTGRES_PASSWORD=demo
Docker Cloud file for above deployment: docker-cloud.yml
db:
environment:
- POSTGRES_DB=servoyworld_2017
- POSTGRES_PASSWORD=demo
image: 'itechpros/servoy:servoy_generic_demo_dynamic_db_pg'
servoy:
environment:
- JAVA_XMS=128m
- JAVA_XMX=1024m
image: 'itechpros/servoy:servoy_generic_demo_dynamic_db'
links:
- db
ports:
- '8080:8080'
Designed to be bundled together with Docker Compose, Docker Cloud, or other orchestration tool. This will deploy the Servoy Sample CRM for the Servoy NGClient.
Docker Compose file for above deployment: docker-compose.yml
version: '3'
services:
servoy:
container_name: Servoy8
image: 'itechpros/servoy:servoy_war_demo_dynamic_db'
environment:
- JAVA_XMS=128m
- JAVA_XMX=1024m
links:
- db
depends_on:
- db
ports:
- '8080:8080'
db:
container_name: Postgres
image: 'itechpros/servoy:servoy_war_demo_dynamic_db_pg'
environment:
- POSTGRES_DB=servoyworld_2017
- POSTGRES_PASSWORD=demo
Docker Cloud file for above deployment: docker-cloud.yml
db:
environment:
- POSTGRES_DB=servoyworld_2017
- POSTGRES_PASSWORD=demo
image: 'itechpros/servoy:servoy_war_demo_dynamic_db_pg'
servoy:
environment:
- JAVA_XMS=128m
- JAVA_XMX=1024m
image: 'itechpros/servoy:servoy_war_demo_dynamic_db'
links:
- db
ports:
- '8080:8080'
Remember that your Docker containers loose their data after restart. This is fine for Servoy applications servers, as they shouldn't be storing any persistent data beyond what you setup in your Dockerfile. However for your Database servers, consider adding a volume to your Docker Compose or Docker Cloud file so that the storage location for the data is mapped to a fixed location on the parent host machine. This way it will start up and always look to the same folder for its database data. Keep in mind this only works if you do 1 database server per Docker host, otherwise you'll need to choose different locations on the host for each of the different database servers, or use a more advanced technique. (You don't want 2 database servers running and pointing to the same data directory)
Docker Compose file example with a volume for persistent storage
docker-compose.yml
Saves the /var/lib/postgresql/data folder on the Docker container into the /container_volumes/pg folder on the host machine. For Docker Cloud, use the same technique, adding a volumes property.
version: '3'
services:
servoy:
container_name: Servoy8
image: 'itechpros/servoy:servoy_war_demo_dynamic_db'
environment:
- JAVA_XMS=128m
- JAVA_XMX=1024m
links:
- db
depends_on:
- db
ports:
- '8080:8080'
db:
container_name: Postgres
image: 'itechpros/servoy:servoy_war_demo_dynamic_db_pg'
environment:
- POSTGRES_DB=servoyworld_2017
- POSTGRES_PASSWORD=demo
volumes:
- /container_volumes/pg:/var/lib/postgresql/data
Content type
Image
Digest
Size
309.6 MB
Last updated
over 7 years ago
docker pull itechpros/servoy:tomcat-oraclejava-s3