Unverified Commit 468f1d04 by Paul B

[dev] Use latest Odoo 9.0-cooperatic image of 2021-04-02

Ce commit fait aussi en sorte de monter le dossier courant comme
volume dans l'image des applis-tierces pour pouvoir développer.
parent e5686efd
version: '3' version: '3'
services: services:
app: app:
build: build:
context: . context: .
...@@ -12,6 +13,9 @@ services: ...@@ -12,6 +13,9 @@ services:
links: links:
- "couchdb:couchdb" - "couchdb:couchdb"
- "odoo:odoo" - "odoo:odoo"
volumes:
- "./:/home/app/"
couchdb: couchdb:
build: build:
context: . context: .
...@@ -22,6 +26,7 @@ services: ...@@ -22,6 +26,7 @@ services:
- "5984:5984" # Expose port because it's used by the frontend - "5984:5984" # Expose port because it's used by the frontend
volumes: volumes:
- "couchdb-data:/opt/couchdb/data" - "couchdb-data:/opt/couchdb/data"
database: database:
image: "postgres:13" image: "postgres:13"
env_file: .env env_file: .env
...@@ -29,7 +34,7 @@ services: ...@@ -29,7 +34,7 @@ services:
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-03-21" image: "registry.gitlab.com/lgds/foodcoops:9.0-cooperatic-2021-04-02"
env_file: .env env_file: .env
restart: always restart: always
ports: ports:
......
...@@ -11,8 +11,8 @@ WORKDIR /home/app ...@@ -11,8 +11,8 @@ WORKDIR /home/app
COPY requirements.txt /home/app/ COPY requirements.txt /home/app/
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
# Copy application # Setup volume to be able to dev application locally
ADD . /home/app/ VOLUME /home/app
# Run the application: # Run the application:
EXPOSE 8080 EXPOSE 8080
......
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