Commit 27d57597 by Thibault Grandjean

run odoo in docker-compose

parent a747b1f9
......@@ -7,7 +7,9 @@ RUN apt-get install -y python-dev libsasl2-dev libldap2-dev libssl-dev build-ess
WORKDIR /usr/src/odoo
COPY . .
COPY ./odoo/requirements.txt ./odoo/requirements.txt
RUN pip install --no-cache-dir -r ./odoo/requirements.txt
RUN pip install psycopg2==2.7.3.2
RUN pip install --no-cache-dir numpy simplejson XlsxWriter pysftp
RUN pip install --no-cache-dir watchdog==0.9 argh
COPY . .
version: '3'
services:
odoo:
image: "odoo/foodcoops"
build:
context: .
dockerfile: ./Dockerfile
ports:
- "8069:8069"
restart: always
links:
- "database:database"
volumes:
- "third-party_odoo-shared-data:/root/.local/share/Odoo"
- "./:/usr/src/odoo"
command: python ./odoo/odoo.py --db_host=database --database=lacagette_anon --db_user=foodcoops --db_password=foodcoops --addons-path=odoo/addons,lacagette_addons,extra_addons,smile_addons,intercoop_addons,louve_addons,supercafoutch_addons --dev
depends_on:
- "database"
database:
image: "postgres:10"
ports:
- "5432:5432" # Expose port for data restore
volumes:
- "third-party_odoo-pg-data:/var/lib/postgresql/data"
volumes:
third-party_odoo-shared-data:
external: true
third-party_odoo-pg-data:
external: true
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