Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -------------------------------------------------
- # Box1 (working) in /opt/domain1/docker-compose.yml
- # ------------------------------------------------
- version: '3'
- services:
- fix-postgresql:
- image: bitnami/postgresql:latest
- user: root
- command: chown -R 1001:1001 /bitnami
- volumes:
- - ./postgresql_data:/bitnami
- postgresql:
- image: bitnami/postgresql:latest
- volumes:
- - ./postgresql_data:/bitnami
- depends_on:
- - fix-postgresql
- odoo:
- image: 'bitnami/odoo:latest'
- expose:
- - "8069"
- - "8071"
- environment:
- ODOO_EMAIL: "chris.heney@gmail.com"
- ODOO_PASSWORD: "poiuPOIU87"
- VIRTUAL_HOST: "erp.domain1.com"
- VIRTUAL_PORT: "8069"
- VIRTUAL_PROTO: "http"
- LETSENCRYPT_HOST: "erp.domain1.com"
- volumes:
- - ./odoo_data:/bitnami
- depends_on:
- - postgresql
- volumes:
- postgresql_data:
- driver: local
- odoo_data:
- driver: local
- networks:
- default:
- external:
- name: nginx-proxy
- # -------------------------------------------------
- # Box2 (failing) in /opt/domain2/docker-compose.yml
- # -------------------------------------------------
- # ERROR
- # odoo_d2_1 | Error executing 'postInstallation': User bn_odoo already exists
- # erpdomain2com_odoo_d2_1 exited with code 1
- #
- version: '3'
- services:
- fix-postgresql:
- image: bitnami/postgresql:latest
- user: root
- command: chown -R 1001:1001 /bitnami
- volumes:
- - ./postgresql_tripled_data:/bitnami
- postgresql_d2:
- image: bitnami/postgresql:latest
- volumes:
- - ./postgresql_tripled_data:/bitnami
- depends_on:
- - fix-postgresql
- odoo_tripled:
- image: 'bitnami/odoo:latest'
- expose:
- - "8069"
- - "8071"
- environment:
- ODOO_EMAIL: "user@gmbail.com"
- ODOO_PASSWORD: "asdf"
- VIRTUAL_HOST: "erp.domain2.com"
- VIRTUAL_PORT: "8069"
- VIRTUAL_PROTO: "http"
- LETSENCRYPT_HOST: "erp.domain2.com"
- volumes:
- - ./odoo_data:/bitnami
- depends_on:
- - postgresql_d2
- volumes:
- postgresql_d2_data:
- driver: local
- odoo_d2_data:
- driver: local
- networks:
- default:
- external:
- name: nginx-proxy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement