diff --git a/.history/docker-compose_20210705104828.yml b/.history/docker-compose_20210705104828.yml new file mode 100644 index 0000000..c9b3823 --- /dev/null +++ b/.history/docker-compose_20210705104828.yml @@ -0,0 +1,33 @@ +version: '2' +services: + db: + image: postgres:13 + # container_name: postgres13 + environment: + - POSTGRES_PASSWORD=odoo + - POSTGRES_USER=odoo + - POSTGRES_DB=postgres + restart: always # run as a service + volumes: + - ./postgresql:/var/lib/postgresql/data + + odoo14: + image: odoo:14 + # container_name: odoo14 + depends_on: + - db + ports: + - "10014:8069" + tty: true + command: -- --dev=reload +# command: odoo scaffold /mnt/extra-addons/custom_module + environment: + - HOST=localhost + - POSTGRES_DB=1313odoo + - USER=1313odoo + - PASSWORD=odoo + volumes: + - ./addons:/mnt/extra-addons + - ./etc:/etc/odoo + restart: always # run as a service + \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 89c7e91..c9b3823 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,8 +1,21 @@ version: '2' services: + db: + image: postgres:13 + # container_name: postgres13 + environment: + - POSTGRES_PASSWORD=odoo + - POSTGRES_USER=odoo + - POSTGRES_DB=postgres + restart: always # run as a service + volumes: + - ./postgresql:/var/lib/postgresql/data + odoo14: image: odoo:14 # container_name: odoo14 + depends_on: + - db ports: - "10014:8069" tty: true @@ -12,7 +25,7 @@ services: - HOST=localhost - POSTGRES_DB=1313odoo - USER=1313odoo - - PASSWORD=52pLGrZzfZY7 + - PASSWORD=odoo volumes: - ./addons:/mnt/extra-addons - ./etc:/etc/odoo