Unverified Commit a7176704 by Paul B

[dev] Use LGDS specific odoo conf & Docker images

parent 784c0ef6
COUCHDB_USER=admin COUCHDB_USER=admin
COUCHDB_PASSWORD=123abc COUCHDB_PASSWORD=123abc
POSTGRES_USER=foodcoops POSTGRES_USER=lgds
POSTGRES_PASSWORD=foodcoops POSTGRES_PASSWORD=lgds
POSTGRES_DB=foodcoops POSTGRES_DB=lgds
...@@ -13,6 +13,9 @@ services: ...@@ -13,6 +13,9 @@ services:
links: links:
- "couchdb:couchdb" - "couchdb:couchdb"
- "odoo:odoo" - "odoo:odoo"
depends_on:
- odoo
- couchdb
volumes: volumes:
- "./:/home/app/" - "./:/home/app/"
...@@ -28,19 +31,23 @@ services: ...@@ -28,19 +31,23 @@ services:
- "couchdb-data:/opt/couchdb/data" - "couchdb-data:/opt/couchdb/data"
database: database:
image: "postgres:10" image: "registry.gitlab.com/lgds/private-docker-images/postgres-lgds-anon:2021-04-28"
env_file: .env env_file: .env
restart: always restart: always
volumes: volumes:
- "odoo-pg-data:/var/lib/postgresql/data" - "odoo-pg-data:/var/lib/postgresql/data"
odoo: odoo:
image: "registry.gitlab.com/lgds/foodcoops:9.0-cooperatic-2021-04-02" build:
context: .
dockerfile: dockerfiles/Dockerfile.odoo-lgds
env_file: .env env_file: .env
restart: always restart: always
ports: ports:
- "8069:8069" - "8069:8069"
links: links:
- "database:database" - "database:database"
depends_on:
- database
volumes: volumes:
- "odoo-shared-data:/home/app/.local/share/Odoo" - "odoo-shared-data:/home/app/.local/share/Odoo"
......
# FROM registry.gitlab.com/lgds/foodcoops:9.0-cooperatic-2021-04-15
FROM registry.gitlab.com/lgds/private-docker-images/odoo-with-filestore:2021-04-28
# Basic configuration of Odoo
RUN mkdir -p /home/app/.local/share/Odoo/
COPY --chown=app dockerfiles/odoo.conf /home/app/.local/share/Odoo/odoo.conf
COPY --chown=app .env /home/app/
# Don't install modules because we start with an already provisioned database
RUN rm -rf /home/app/modules.txt
CMD ["./odoo.sh", "/home/app/.local/share/Odoo/odoo.conf", "lgds"]
[options]
admin_passwd=False
db_host=database
db_port=5432
db_user=lgds
db_password=lgds
db_name=lgds
dbfilter=lgds
without_demo=all
# Addons path doesn't seem to work from Configuration File...
#addons_path=odoo/addons,extra_addons,intercoop_addons,louve_addons,smile_addons
load_language=fr_FR
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment