Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
odoo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
odoo
Commits
27d57597
Commit
27d57597
authored
Feb 21, 2022
by
Thibault Grandjean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run odoo in docker-compose
parent
a747b1f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
1 deletions
+37
-1
Dockerfile
Dockerfile
+3
-1
docker-compose.yml
docker-compose.yml
+34
-0
No files found.
Dockerfile
View file @
27d57597
...
...
@@ -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
. .
docker-compose.yml
0 → 100644
View file @
27d57597
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment