Setting up ODOO, NGINX and PGADMIN4 using a dockerfile

Share
Embed
  • Loading...
  • Published on:  Monday, June 21, 2021
  • For those of you who have braved my last twos for 2 hours then I am sorry.. I have condensed the video some more down to around 35 mins.


    So if you would like to install Odoo, NGINX and PGADMIN using Docker then this is the once stop video for you.


    I have included the docker-compose file below. Just check out the video for additional folder and file setup. Comment and Subscribe, also leave me some suggestions for future videos...


    version: '3.1'
    services:
    odoo-stack:
    container_name: odoo-stack
    build:
    context: ./dockerfile
    dockerfile: odoo.Dockerfile
    volumes:
    - ./addons-extra:/mnt/addons-extra
    - ./odoo-config:/etc/odoo
    - odoo-web-data:/var/lib/odoo
    ports:
    - 8069:8069
    depends_on:
    - database-stack
    restart: always

    database-stack:
    container_name: database-stack
    image: postgres:latest
    volumes:
    - database-stack-data:/var/lib/postgresql/data/pgdata
    ports:
    - 5432:5432
    #command: -p 5433
    environment:
    - POSTGRES_PASSWORD=odoo
    - POSTGRES_USER=odoo
    - POSTGRES_DB=postgres
    - PGDATA=/var/lib/postgresql/data/pgdata
    restart: always

    pgadmin-stack:
    container_name: pgadmin-stack
    image: dpage/pgadmin4:5.4
    volumes:
    - pgadmin-data:/var/lib/pgadmin
    ports:
    - 8080:80
    links:
    - "database-stack:pgsql-server"
    environment:
    PGADMIN_DEFAULT_EMAIL:
    PGADMIN_DEFAULT_PASSWORD: secret
    PGADMIN_LISTEN_PORT: 80
    depends_on:
    - database-stack
    restart: always

    nginx-stack:
    container_name: nginx-stack
    build:
    context: ./dockerfile
    dockerfile: nginx.Dockerfile
    volumes:
    - ./nginx-config:/etc/nginx/conf.d
    ports:
    - 80:80 #non secure
    - 443:443 #ssl
    depends_on:
    - odoo-stack
    restart: always

    volumes:
    odoo-web-data:
    database-stack-data:
    pgadmin-data:
  • Source: https://youtu.be/-oTjTv15Rb8
Loading...

Comment