Git Product home page Git Product logo

docker-setup's Introduction

Structr Docker Setup

Requirements:

  • docker
  • docker-compose

Usage with docker-compose:

Initial setup:
  • Copy your license.key file to ./structr/license.key
  • Run docker-compose build
Starting the instances:
  • Run docker-compose --compatibility up -d to start Neo4j and Structr
  • Open http://127.0.0.1:8082/structr/ in your browser to access Structr
Stopping the instances:
  • docker-compose down
Inspecting the containers
  • docker ps
  • note the container id
  • docker exec -it <Unique identifier for container> /bin/sh

Usage with docker swarm:

Initial setup:
  • copy your license.key file to ./structr/license.key
  • run docker swarm init
Starting the instances:
  • Run docker stack deploy --compose-file docker-compose.yml structr to start Neo4j and Structr
  • Open http://127.0.0.1:8082/structr/ in your browser to access Structr
Stopping the instances:
  • docker stack rm structr
Inspecting the containers
  • docker ps
  • note the container id
  • docker exec -it <Unique identifier for container> /bin/sh
Inspecting the stack
  • Run docker stack ps structr to get a list of all tasks in the structr stack
  • Run docker stack services structr to get a list of all services in the structr stack

Customizing Ressources

The CPU and RAM configuration of the containers can be changed in the docker-compose.yml file. If the config is changed here, then ./structr/memory.config has to be adjusted as well to prevent Structr from using too much or too little ressources and triggering an OutOfMemory exception.


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

  1. clone repository to ./volumes/repository
  2. goto http://localhost:8082/structr/#dashboard -> Deployment
  3. copy /var/lib/structr/repository/webapp into the 'Import application from local directory' input field and click on the import button
  4. when changes have been made copy the same path into the 'Export application to local 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.

docker-setup's People

Contributors

derkaiserreich avatar vigorouscoding avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.