Skip to content

Commit

Permalink
feat(nextcloud): added redis (#41)
Browse files Browse the repository at this point in the history
Co-authored-by: Max Ebert <[email protected]>
  • Loading branch information
Serph91P and Max Ebert authored Oct 13, 2023
1 parent d1d13e8 commit c8e3d5b
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion servapps/Nextcloud/cosmos-compose.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"MYSQL_USER=nextcloud",
"MYSQL_PASSWORD={Passwords.0}",
"MYSQL_HOST={ServiceName}-mariadb",
"REDIS_HOST={ServiceName}-redis",
"REDIS_HOST_PASSWORD={Passwords.2}",
"NC_overwriteprotocol=https"
],
"labels": {
Expand Down Expand Up @@ -110,7 +112,7 @@
},

"{ServiceName}-mariadb": {
"image": "mariadb:10.11",
"image": "mariadb:latest",
"container_name": "{ServiceName}-mariadb",
"hostname": "{ServiceName}-mariadb",
"restart": "unless-stopped",
Expand Down Expand Up @@ -138,6 +140,33 @@
"MARIADB_PASSWORD={Passwords.0}",
"MARIADB_ROOT_PASSWORD={Passwords.1}"
]
},

"{ServiceName}-redis": {
"image": "bitnami/redis:latest",
"container_name": "{ServiceName}-redis",
"hostname": "{ServiceName}-redis",
"restart": "unless-stopped",
"stop_grace_period": 5,
"security_opt": [
"seccomp:unconfined",
"apparmor:unconfined"
],
"networks": {
"{ServiceName}-mariadb": {}
},
"volumes": [
{
"source": "{ServiceName}-redis-data",
"target": "/bitnami/redis",
"type": "volume"
}
],
"environment": [
"ALLOW_EMPTY_PASSWORD=no",
"REDIS_PASSWORD={Passwords.2}",
"REDIS_EXTRA_FLAGS=--auto-aof-rewrite-percentage 100 --auto-aof-rewrite-min-size 64mb"
]
}
},

Expand Down

0 comments on commit c8e3d5b

Please sign in to comment.