Home

Awesome

Tests

Structr Docker Setup

Requirements:


First steps:

Usage with docker-compose:

Initial setup:
Starting the instances:
Stopping the instances:
Inspecting the containers
Inpecting the service log files

Usage with docker swarm:

Initial setup:
Starting the instances:
Stopping the instances:
Inspecting the containers
Inspecting the stack
Inpecting the service log files

Customizing Ressources

The CPU and RAM configuration of the containers can be changed in the docker-compose.yml file.


Deployment Roundtrip of an Structr application (order is crucial!!!):

  1. clone repository to ./volumes/structr-repository
  2. goto http://localhost:8082/structr/#dashboard -> Deployment
  3. copy /var/lib/structr/repository/webapp into the 'Application import from server directory' input field and click on the import button
  4. when changes have been made copy the same path into the 'Application export to server directory' input field and click the button
  5. commit your changes on the host system to github
  6. pull the new repository version
  7. push your changes
  8. repeat from 3.