Skip to content

Commit

Permalink
[CONF] Add Docker configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
isabellerichard committed Mar 4, 2021
1 parent 66b64d6 commit 36228c1
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM odoo:14.0

USER root

COPY ./requirements.txt .
RUN pip3 install -r ./requirements.txt

USER odoo
32 changes: 32 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: '3.8'
services:
odoo:
container_name: smile_addons_odoo
environment:
- HOST=db
- USER=odoo
- PASSWORD=odoo
build: .
ports:
- 8069:8069
stdin_open: true
tty: true
user: odoo
volumes:
- odoo-web-data:/var/lib/odoo
- .:/mnt/extra-addons
db:
container_name: smile_addons_db
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- PGDATA=/var/lib/postgresql/data/pgdata
image: postgres:13-alpine
ports:
- 5432:5432
volumes:
- odoo-db-data:/var/lib/postgresql/data/pgdata
volumes:
odoo-db-data:
odoo-web-data:
Empty file added requirements.txt
Empty file.

0 comments on commit 36228c1

Please sign in to comment.