OpenProject: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==References== * [https://docs.openproject.org/installation-and-operations/ OP Installation and Operations Guides] * [https://community.openproject.com/topics/6873 OpenProject...") |
(→Docker) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| | |||
| valign="top" | | |||
'''Linux:''' | |||
export OP_HOME=/srv/openproject | |||
| valign="top" | | |||
'''MacOS:''' | |||
export OP_HOME=$HOME/openproject | |||
|} | |||
{| class="wikitable sortable" | |||
|- | |||
! Local location !! Container location !! Usage | |||
|- | |||
| <code>$OP_HOME/openproject10/pgdata</code> || <code>/var/openproject/pgdata</code> || Data | |||
|- | |||
| <code>$OP_HOME/openproject10/assets</code> || <code>/var/openproject/assets</code> || Assets | |||
|} | |||
<source lang="bash"> | |||
docker run -it --rm \ | |||
--env SECRET_KEY_BASE=secret \ | |||
--publish 8080:80 \ | |||
openproject/community:10 \ | |||
/bin/bash | |||
id; exit | |||
</source> | |||
<source lang="bash"> | |||
mkdir -p $OP_HOME/openproject10/{pgdata,assets} | |||
#chown -R 1000:1000 $OP_HOME/openproject10/ | |||
</source> | |||
==Docker== | |||
<source lang="bash"> | |||
docker run --detach \ | |||
--env SECRET_KEY_BASE=secret \ | |||
--publish 8080:80 \ | |||
--name openproject \ | |||
--volume $OP_HOME/openproject10/pgdata:/var/openproject/pgdata \ | |||
--volume $OP_HOME/openproject10/assets:/var/openproject/assets \ | |||
openproject/community:10 | |||
</source> | |||
===Debian=== | |||
<source lang="bash" highlight="2,3,7-9" line> | |||
docker run --detach \ | |||
--env OPENPROJECT_RAILS__RELATIVE__URL__ROOT=/openproject \ | |||
--env OPENPROJECT_RAILS__FORCE__SSL=false \ | |||
--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 | |||
</source> | |||
===CentOS=== | |||
<source lang="bash" highlight="2,3,7-9" line> | |||
docker run --detach \ | |||
--env OPENPROJECT_RAILS__RELATIVE__URL__ROOT=/openproject \ | |||
--env OPENPROJECT_RAILS__FORCE__SSL=false \ | |||
--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 | |||
</source> | |||
==Compose== | |||
<source lang="bash> | |||
mkdir openproject | |||
cd openproject | |||
git clone --depth=1 --branch=stable/10 https://github.com/opf/openproject . | |||
docker-compose up -d | |||
docker-compose down | |||
</source> | |||
==Admin== | |||
'''SSH Local Forwarding:''' | |||
ssh -L 8080:localhost:8080 [email protected] | |||
http://localhost:8080 | |||
'''user:''' admin | |||
'''pass:''' admin | |||
==References== | ==References== | ||
* [https://docs.openproject.org/installation-and-operations/ OP Installation and Operations Guides] | * [https://docs.openproject.org/installation-and-operations/ OP Installation and Operations Guides] | ||
* [https://hub.docker.com/r/openproject/community/tags OpenProject Community Docker Hub] | |||
* [https://community.openproject.com/topics/6873 OpenProject armhf Packages] | * [https://community.openproject.com/topics/6873 OpenProject armhf Packages] | ||
* [https://community.openproject.com/topics/1354 OpenProject on Raspberry Pi] | * [https://community.openproject.com/topics/1354 OpenProject on Raspberry Pi] | ||
* [https://docs.openproject.org/installation-and-operations/installation/docker/ OpenProject Docker Images] | * [https://docs.openproject.org/installation-and-operations/installation/docker/ OpenProject Docker Images] | ||
* [https://www.openproject.org/ OpenProject] |
Latest revision as of 01:42, 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
docker run --detach \
--env SECRET_KEY_BASE=secret \
--publish 8080:80 \
--name openproject \
--volume $OP_HOME/openproject10/pgdata:/var/openproject/pgdata \
--volume $OP_HOME/openproject10/assets:/var/openproject/assets \
openproject/community:10
Debian
docker run --detach \
--env OPENPROJECT_RAILS__RELATIVE__URL__ROOT=/openproject \
--env OPENPROJECT_RAILS__FORCE__SSL=false \
--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=false \
--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