Diferencia entre revisiones de «Docker-compose-odoo-10.yml»
De TechShareRoom wiki
Más acciones
Sin resumen de edición  | 
				Sin resumen de edición  | 
				||
| (No se muestra una edición intermedia del mismo usuario) | |||
| Línea 1: | Línea 1: | ||
<syntaxhighlight lang="YAML">  | <syntaxhighlight lang="YAML">  | ||
services:  | services:  | ||
   web:  |    web:  | ||
     image: odoo:10.0  |      image: odoo:10.0  | ||
    container_name: odoo-example-web  | |||
     restart: always  |      restart: always  | ||
     depends_on:  |      depends_on:  | ||
| Línea 10: | Línea 10: | ||
       - "8069:8069"  |        - "8069:8069"  | ||
     volumes:  |      volumes:  | ||
       -   |        - ./odoo-extra-addons:/mnt/extra-addons  | ||
      - ./odoo-web-data:/var/lib/odoo  | |||
   db:  |    db:  | ||
     image: postgres:9.4  |      image: postgres:9.4  | ||
    container_name: odoo-example-db  | |||
     restart: always  |      restart: always  | ||
     environment:  |      environment:  | ||
       - POSTGRES_PASSWORD=odoo  |        - POSTGRES_PASSWORD=odoo  | ||
       - POSTGRES_USER=odoo  |        - POSTGRES_USER=odoo  | ||
volumes:  |     volumes:  | ||
      - ./postgres-data:/var/lib/postgresql/data  | |||
</syntaxhighlight>  | </syntaxhighlight>  | ||
Revisión actual - 23:37 22 sep 2024
services:
  web:
    image: odoo:10.0
    container_name: odoo-example-web
    restart: always
    depends_on:
      - db
    ports:
      - "8069:8069"
    volumes:
      - ./odoo-extra-addons:/mnt/extra-addons
      - ./odoo-web-data:/var/lib/odoo
  db:
    image: postgres:9.4
    container_name: odoo-example-db
    restart: always
    environment:
      - POSTGRES_PASSWORD=odoo
      - POSTGRES_USER=odoo
    volumes:
      - ./postgres-data:/var/lib/postgresql/data