GithubHelp home page GithubHelp logo

linancn / lca-collaboration-server-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from greendelta/lca-collaboration-server-docker

0.0 0.0 1.0 23 KB

Docker file for building an image for the LCA Collaboration Server

Shell 44.62% Dockerfile 55.38%

lca-collaboration-server-docker's Introduction

Example Docker Setup for the LCA Collaboration Server 2.0

This repository contains a setup for running the LCA Collaboration Server 2.0 in a Docker container. Before you run a setup as described below, you may have to update the download URLs for the LCA collaboration server and its installer in the Docker file first. Then, you can start the collaboration server by executing the following command:

cd lca-collaboration-server-docker
docker compose up

If not done yet, this will build the image for the collaboration server and also fetch images for MySQL and OpenSearch. Then it starts containers for these images in interactive mode.

The setup will use two volumes (db-data and server-data) for storing data. These volumes are created if they do not exist yet:

docker volume ls
# DRIVER VOLUME NAME
# local  lca-collaboration-server-docker_db-data
# local  lca-collaboration-server-docker_server-data

The collaboration server will run on port 8080, thus http://localhost:8080 will bring you to the login page of the collaboration server (the initial admin user is administrator with the password: Plea5eCh@ngeMe, see also the configuration guide.)

For using the search, you first need to enable it in the administration settings under Enabled features: Search. For the URL of the OpenSearch service, you need to set it to http://search:9200:

schema: http
url:    search   # not localhost!
port:   9200

Running in read-only mode with external MySQL Server

To run the collaboration server in read-only mode, build the lca-collaboration-server image with the following command first:

docker build -t lca-collaboration-server .

The MySQL Server parameters can be adapted in the application.properties file:

spring.datasource.url=jdbc:mysql://<HOST>:<PORT>/<MYSQL_DATABASE>
spring.datasource.username=<MYSQL_USER>
spring.datasource.password=<MYSQL_PASSWORD>
[...]

The container can be run with the following command (the MySQL server must be up and running) then:

docker compose -f compose-read-only.yaml up

If you want to run the containers in background instead, just add the -d flag to the command:

docker compose -f compose-read-only.yaml up -d

The setup will use a single volume (server-data) for storing data. This volume is created if it does not exist yet:

docker volume ls
# DRIVER VOLUME NAME
# local  lca-collaboration-server-docker_server-data

Run a stand alone MySQL container

For testing purposes, a MySQL container with different host name and port can be run with the following command:

docker compose -f mysql/compose.yaml up

The database schema is initialized at start.

lca-collaboration-server-docker's People

Contributors

msrocka avatar francoislerall avatar linancn avatar

Forkers

changmillet

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.