Просмотр исходного кода

[ADD] Run Odoo with a custom configuration

Aaron Bohy 11 лет назад
Родитель
Сommit
4832a8ba6e
2 измененных файлов с 16 добавлено и 0 удалено
  1. 8 0
      odoo/README.md
  2. 8 0
      odoo/content.md

+ 8 - 0
odoo/README.md

@@ -59,6 +59,14 @@ and update your version of Odoo using `apt-get`.
 	# apt-get update
 	# apt-get install odoo
 
+## Run Odoo with a custom configuration
+
+The default configuration file for the server (located at `/etc/odoo/openerp-server.conf`)
+can be overriden at startup using volumes. Suppose you have a custom configuration
+at `/path/to/config/openerp-server.conf`, then
+
+	docker run -v /path/to/config:/etc/odoo -p 127.0.0.1:8069:8069 --name odoo --link db:db -t odoo
+
 ## Run multiple Odoo instances
 	
 	docker run -p 127.0.0.1:8070:8069 --name odoo2 --link db:db -t odoo

+ 8 - 0
odoo/content.md

@@ -49,6 +49,14 @@ and update your version of Odoo using `apt-get`.
 	# apt-get update
 	# apt-get install odoo
 
+## Run Odoo with a custom configuration
+
+The default configuration file for the server (located at `/etc/odoo/openerp-server.conf`)
+can be overriden at startup using volumes. Suppose you have a custom configuration
+at `/path/to/config/openerp-server.conf`, then
+
+	docker run -v /path/to/config:/etc/odoo -p 127.0.0.1:8069:8069 --name odoo --link db:db -t odoo
+
 ## Run multiple Odoo instances
 	
 	docker run -p 127.0.0.1:8070:8069 --name odoo2 --link db:db -t odoo