Skip to content

Instantly share code, notes, and snippets.

@hivivo
Created November 29, 2021 00:48
Show Gist options
  • Save hivivo/fbe0c679fc34d84a0f7d3430b974b9ca to your computer and use it in GitHub Desktop.
Save hivivo/fbe0c679fc34d84a0f7d3430b974b9ca to your computer and use it in GitHub Desktop.
CapRover OneClick App - Monica (using remote DB)
captainVersion: 4
services:
# Monica
$$cap_appname:
image: monica:$$cap_monica_version
restart: 'always'
environment:
APP_KEY: $$cap_gen_random_hex(32)
DB_HOST: $$cap_mariadb-host
DB_DATABASE: $$cap_mariadb-db
DB_USERNAME: $$cap_mariadb-user
DB_PASSWORD: $$cap_mariadb-pass
APP_ENV: 'production'
volumes:
- $$cap_appname-storage:/var/www/html/storage
caproverOneClickApp:
variables:
- id: $$cap_monica_version
label: Monica Docker version
defaultValue: '3'
description: Check out this page for the valid tags Find on https://hub.docker.com/_/monica?tab=tags. Use the Apache tag otherwise it won't work.
- id: $$cap_mariadb-host
label: MariaDB Host
defaultValue: 'localhost'
description: Database host for Monica
- id: $$cap_mariadb-db
label: MariaDB Database
description: Database name for Monica
defaultValue: 'monica'
- id: $$cap_mariadb-user
label: MariaDB User
description: Database User for Monica
defaultValue: 'monica'
- id: $$cap_mariadb-pass
label: MariaDB database user password
description: Super secret database user password
instructions:
start: >-
Monica is a great open source personal relationship management system to organize the interactions with your loved ones.
end: >-
Aaaand you're done! 😄
Wait approximately 1 minutes until all migrations are done and then access Monica at https://$$cap_appname.$$cap_root_domain from your host system. If this looks ok, add your first user account.
displayName: 'Monica'
isOfficial: true
description: Monica is a great open source personal relationship management system to organize the interactions with your loved ones.
documentation: Taken from https://hub.docker.com/_/monica
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment