-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
24 lines (24 loc) · 936 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
version: '3.7'
services:
odoo:
build:
context: .
dockerfile: "images/${DOCKERFILE}.dockerfile"
image: "localhost/odoo:${DOCKERFILE}"
userns_mode: "keep-id" # To keep same UID/GID as host, mainly for the postgresql sockect connection
network_mode: "slirp4netns"
volumes:
- ./bin/entrypoint:/usr/local/bin/entrypoint:ro
- ./bin/odoo:/usr/local/bin/odoo:ro
- ~/src/upgrade:/home/odoo/src/upgrade:ro
- ~/src/upgrade-util:/home/odoo/src/upgrade-util:ro
- /var/run/postgresql:/var/run/postgresql:ro
- ~/.local/share/Odoo:/home/odoo/.local/share/Odoo
- ~/.ipython:/home/odoo/.ipython
- ~/.config/pudb:/home/odoo/.config/pudb
entrypoint: entrypoint
cap_add:
- NET_ADMIN
- NET_RAW # Required only for Ubuntu Bionic. From focal it's no longer required.
x-podman:
in_pod: false # See https://github.com/containers/podman-compose/pull/964