OpenProject: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 31: Line 31:
==Docker==
==Docker==
===Debian===
===Debian===
<source lang="bash" highlight="2,3,6,7" line>
<source lang="bash" highlight="2,3,8,9" line>
docker run --detach \
docker run --detach \
--env OPENPROJECT_RAILS__RELATIVE__URL__ROOT=/openproject \
--env OPENPROJECT_RAILS__RELATIVE__URL__ROOT=/openproject \
Line 45: Line 45:


===CentOS===
===CentOS===
<source lang="bash" highlight="2,3,6,7" line>
<source lang="bash" highlight="2,3,8,9" line>
docker run --detach \
docker run --detach \
--env OPENPROJECT_RAILS__RELATIVE__URL__ROOT=/openproject \
--env OPENPROJECT_RAILS__RELATIVE__URL__ROOT=/openproject \

Revision as of 01:27, 21 September 2020

Linux:
export OP_HOME=/srv/openproject
MacOS:
export OP_HOME=$HOME/openproject
Local location Container location Usage
$OP_HOME/openproject10/pgdata /var/openproject/pgdata Data
$OP_HOME/openproject10/assets /var/openproject/assets Assets
docker run -it --rm \
--env SECRET_KEY_BASE=secret \
--publish 8080:80 \
openproject/community:10 \
/bin/bash
id; exit
mkdir -p $OP_HOME/openproject10/{pgdata,assets}
#chown -R 1000:1000 $OP_HOME/openproject10/

Docker

Debian

docker run --detach \
--env OPENPROJECT_RAILS__RELATIVE__URL__ROOT=/openproject \
--env OPENPROJECT_RAILS__FORCE__SSL=true \
--env SECRET_KEY_BASE=secret \
--publish 8080:80 \
--name openproject \
--restart always \
--volume $OP_HOME/openproject10/pgdata:/var/openproject/pgdata \
--volume $OP_HOME/openproject10/assets:/var/openproject/assets \
openproject/community:10

CentOS

docker run --detach \
--env OPENPROJECT_RAILS__RELATIVE__URL__ROOT=/openproject \
--env OPENPROJECT_RAILS__FORCE__SSL=true \
--env SECRET_KEY_BASE=secret \
--publish 8080:80 \
--name openproject \
--restart always \
--volume $OP_HOME/openproject10/pgdata:/var/openproject/pgdata:Z \
--volume $OP_HOME/openproject10/assets:/var/openproject/assets:Z \
openproject/community:10

Compose

mkdir openproject
cd openproject

git clone --depth=1 --branch=stable/10 https://github.com/opf/openproject .
docker-compose up -d
docker-compose down

Admin

SSH Local Forwarding:
ssh -L 8080:localhost:8080 [email protected]
http://localhost:8080
user: admin
pass: admin

References