lasthourcloud/templates/compose/odoo.yaml

35 lines
1.0 KiB
YAML
Raw Normal View History

2024-04-26 10:05:56 +00:00
# documentation: https://www.odoo.com/
# slogan: Odoo is a suite of open-source business apps that cover all your company needs.
# tags: business, apps, CRM, eCommerce, accounting, inventory, point of sale, project management, open-source
# logo: svgs/odoo.svg
# port: 8069
services:
odoo:
image: odoo:17
environment:
- SERVICE_FQDN_ODOO_8069
- HOST=postgresql
- USER=$SERVICE_USER_POSTGRES
- PASSWORD=$SERVICE_PASSWORD_POSTGRES
volumes:
- odoo-web-data:/var/lib/odoo
healthcheck:
2024-05-17 08:11:55 +00:00
test: ["CMD", "curl", "-f", "http://127.0.0.1:8069"]
2024-04-26 10:05:56 +00:00
interval: 2s
timeout: 10s
retries: 30
postgresql:
image: postgres:16-alpine
volumes:
- postgresql-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=$SERVICE_USER_POSTGRES
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
- POSTGRES_DB=postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d postgres"]
interval: 5s
timeout: 20s
retries: 10