Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
puppet-modules
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nbits
Puppet
puppet-modules
Commits
f80475cb
Commit
f80475cb
authored
4 years ago
by
drebs
Browse files
Options
Downloads
Patches
Plain Diff
Run ONLYOFFICE DocumentServer with docker-compose (#787)
parent
5d815d5f
No related branches found
No related tags found
No related merge requests found
Pipeline
#55674
failed
4 years ago
Stage: check-code
Stage: tests
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
profile/manifests/docker.pp
+1
-0
1 addition, 0 deletions
profile/manifests/docker.pp
profile/manifests/onlyoffice.pp
+81
-0
81 additions, 0 deletions
profile/manifests/onlyoffice.pp
role/manifests/onlyoffice.pp
+1
-0
1 addition, 0 deletions
role/manifests/onlyoffice.pp
with
83 additions
and
0 deletions
profile/manifests/docker.pp
+
1
−
0
View file @
f80475cb
# Install Docker
class
profile::docker
{
include
docker
include
docker::compose
}
This diff is collapsed.
Click to expand it.
profile/manifests/onlyoffice.pp
0 → 100644
+
81
−
0
View file @
f80475cb
# An ONLYOFFICE installation based on Docker
class
profile::onlyoffice
(
String
$image_tag
=
'latest'
,
String
$jwt_secret
=
''
,
Boolean
$skip_fonts_generation
=
false
,
)
{
$network
=
'onlyoffice'
docker_network
{
$network
:
ensure
=>
present
,
subnet
=>
'172.19.0.0/24'
,
gateway
=>
'172.19.0.1'
,
ip_range
=>
'172.19.0.0/29'
,
}
docker::run
{
'onlyoffice-documentserver'
:
image
=>
"infrarednetwork/onlyoffice-documentserver:
${image_tag}
"
,
net
=>
$network
,
env
=>
[
'RABBITMQ_SERVER_URL=amqp://guest:guest@onlyoffice-rabbitmq'
,
'REDIS_SERVER_HOST=onlyoffice-redis'
,
'REDIS_SERVER_PORT=6379'
,
'POSTGRESQL_SERVER_HOST=onlyoffice-postgresql'
,
'POSTGRESQL_SERVER_PORT=5432'
,
'POSTGRESQL_SERVER_DB_NAME=onlyoffice'
,
'POSTGRESQL_SERVER_USER=onlyoffice'
,
'POSTGRESQL_SERVER_PASS=onlyoffice'
,
"JWT_SECRET=
${jwt_secret}
"
,
"SKIP_FONTS_GENERATION=
${skip_fonts_generation}
"
,
],
ports
=>
[
'8000:8000'
,
'8080:8080'
,
],
depends
=>
[
'onlyoffice-postgresql'
,
'onlyoffice-redis'
,
'onlyoffice-rabbitmq'
,
],
volumes
=>
[
'onlyoffice-log:/var/log/onlyoffice'
,
'onlyoffice-www-data:/var/www/onlyoffice/Data'
,
'onlyoffice-lib:/var/lib/onlyoffice'
,
'system-custom-fonts:/usr/share/fonts/truetype/custom'
,
],
require
=>
[
Docker
::
Run
[
'onlyoffice-redis'
],
Docker
::
Run
[
'onlyoffice-rabbitmq'
],
Docker
::
Run
[
'onlyoffice-postgresql'
],
],
}
docker::run
{
'onlyoffice-redis'
:
image
=>
'redis:alpine'
,
net
=>
$network
,
command
=>
'redis-server --appendonly yes'
,
expose
=>
'6379'
,
volumes
=>
[
'redis-data:/data'
],
}
docker::run
{
'onlyoffice-rabbitmq'
:
image
=>
'rabbitmq:alpine'
,
net
=>
$network
,
expose
=>
'5672'
,
volumes
=>
[
'rabbitmq-home:/var/lib/rabbitmq'
],
}
docker::run
{
'onlyoffice-postgresql'
:
image
=>
'postgres'
,
net
=>
$network
,
env
=>
[
'POSTGRES_DB=onlyoffice'
,
'POSTGRES_USER=onlyoffice'
,
'POSTGRES_PASSWORD=onlyoffice'
,
],
expose
=>
'5432'
,
volumes
=>
[
'postgresql-data:/var/lib/postgresql/data'
],
}
}
This diff is collapsed.
Click to expand it.
role/manifests/onlyoffice.pp
+
1
−
0
View file @
f80475cb
# Install OnlyOffice
class
role::onlyoffice
{
include
profile::docker
include
profile::onlyoffice
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment