Skip to content

Instantly share code, notes, and snippets.

@jigzstar
Last active March 22, 2022 18:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jigzstar/fd7eb33f153dac5f28f8c1138d836363 to your computer and use it in GitHub Desktop.
Save jigzstar/fd7eb33f153dac5f28f8c1138d836363 to your computer and use it in GitHub Desktop.
Caprover odoo one click setup from @abedev31
{
"captainVersion": "2",
"documentation": "https://github.com/caprover/one-click-apps",
"dockerCompose": {
"version": "3.3",
"services": {
"$$cap_appname-db": {
"image": "postgres:$$cap_postgres_version",
"notExposeAsWebApp": "true",
"volumes": [
"$$cap_appname-db-data:/var/lib/postgresql/data"
],
"restart": "always",
"environment": {
"POSTGRES_USER": "odoo",
"POSTGRES_PASSWORD": "$$cap_pg_pass",
"POSTGRES_DB": "postgres"
}
},
"$$cap_appname": {
"image": "odoo:13.0",
"containerHttpPort": "8069",
"depends_on": [
"$$cap_appname-db"
],
"volumes": [
"odoo-web-data:/var/lib/odoo",
"config:/etc/odoo",
"addons:/mnt/extra-addons"
],
"restart": "always",
"environment": {
"POSTGRES_PASSWORD": "$$cap_pg_pass",
"HOST": "srv-captain--$$cap_appname-db"
}
}
}
},
"networks": {
"db": {
"driver": "bridge"
},
"search": {
"driver": "bridge"
}
},
"instructions": {
"start": "Odoo is an open source product CRM",
"end": "Odoo is deployed and available as srv-captain--$$cap_appname:8069 to other apps."
},
"variables": [
{
"id": "$$cap_postgres_version",
"label": "Postgres Version",
"defaultValue": "11.1",
"description": "Checkout their docker page for the valid tags https://hub.docker.com/r/library/postgres/tags/",
"validRegex": "/^([^\\s^\\/])+$/"
},
{
"id": "$$cap_pg_pass",
"label": "Postgres Password",
"description": "",
"validRegex": "/.{1,}/"
},
{
"id": "$$cap_pg_initdb_args",
"label": "OPTIONAL: Arguments for 'postgres initdb'",
"description": "For example, --data-checksums",
"validRegex": "/.{0,}/"
}
]
}
@jigzstar
Copy link
Author

Update to using 13.0 image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment