28 líneas
631 B
Plaintext
28 líneas
631 B
Plaintext
|
|
[Container]
|
||
|
|
ContainerName=odoo
|
||
|
|
Image=localhost/odoo:19-amd64
|
||
|
|
#AutoUpdate=registry
|
||
|
|
Network=internal.network
|
||
|
|
PublishPort=8069:8069
|
||
|
|
PublishPort=8072:8072
|
||
|
|
|
||
|
|
# Custom addons volume
|
||
|
|
Volume=/srv/containers/odoo/custom_addons:/opt/odoo/custom_addons
|
||
|
|
Volume=/srv/containers/odoo/filestore:/opt/odoo/data/filestore
|
||
|
|
|
||
|
|
# Database connection (adjust host if needed)
|
||
|
|
Environment=ADMIN_PASSWD=my_admin_password
|
||
|
|
Environment=DB_HOST=postgres
|
||
|
|
Environment=DB_PORT=5432
|
||
|
|
Environment=DB_USER=odoo
|
||
|
|
Environment=DB_PASSWORD=odoo
|
||
|
|
Environment=DB_NAME=mydb
|
||
|
|
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Restart=on-failure
|
||
|
|
TimeoutStartSec=15m
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target default.target
|