mirror of
https://github.com/odoocker/odoocker
synced 2025-11-04 23:29:19 +01:00
Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bf0448db33 | ||
|
|
d0bfa83653 | ||
|
|
5eff644269 | ||
|
|
e499f951d2 | ||
|
|
e05f5333bd | ||
|
|
0ab69e43a5 | ||
|
|
9d13ed0db1 | ||
|
|
d8f96573e3 | ||
|
|
cf6d846723 | ||
|
|
21e5c4ecde | ||
|
|
ecc5481be4 | ||
|
|
10d0388a1b | ||
|
|
2f1f6fc63b | ||
|
|
5620db94a1 | ||
|
|
08b506972a | ||
|
|
32f16fee74 |
53
.env.example
53
.env.example
@@ -22,6 +22,7 @@ USE_REDIS=false
|
|||||||
USE_S3=false
|
USE_S3=false
|
||||||
USE_SENTRY=false
|
USE_SENTRY=false
|
||||||
USE_PGADMIN=false
|
USE_PGADMIN=false
|
||||||
|
USE_PGBOUNCER=false
|
||||||
|
|
||||||
# GitHub user and access token to clone private repositories
|
# GitHub user and access token to clone private repositories
|
||||||
GITHUB_USER=
|
GITHUB_USER=
|
||||||
@@ -46,6 +47,11 @@ UNACCENT=False
|
|||||||
LIST_DB=True
|
LIST_DB=True
|
||||||
DBFILTER=.*
|
DBFILTER=.*
|
||||||
|
|
||||||
|
# PgBouncer
|
||||||
|
POOL_MODE=transaction
|
||||||
|
MAX_CLIENT_CONN=500
|
||||||
|
ADMIN_USERS=postgres,odoo
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
LOG_LEVEL=info
|
LOG_LEVEL=info
|
||||||
# Additional logs
|
# Additional logs
|
||||||
@@ -103,7 +109,7 @@ S3_VIRTUAL_HOST=s3.odoocker.test
|
|||||||
S3_API_PORT=9000
|
S3_API_PORT=9000
|
||||||
S3_CONSOLE_PORT=9001
|
S3_CONSOLE_PORT=9001
|
||||||
|
|
||||||
AWS_HOST=http://s3:${S3_API_PORT}
|
AWS_HOST=http://minio:${S3_API_PORT}
|
||||||
AWS_REGION=
|
AWS_REGION=
|
||||||
AWS_ACCESS_KEY_ID=myaccesskey
|
AWS_ACCESS_KEY_ID=myaccesskey
|
||||||
AWS_SECRET_ACCESS_KEY=mysecretkey
|
AWS_SECRET_ACCESS_KEY=mysecretkey
|
||||||
@@ -135,6 +141,7 @@ USE_REDIS=${USE_REDIS}
|
|||||||
USE_S3=${USE_S3}
|
USE_S3=${USE_S3}
|
||||||
USE_SENTRY=${USE_SENTRY}
|
USE_SENTRY=${USE_SENTRY}
|
||||||
USE_PGADMIN=${USE_PGADMIN}
|
USE_PGADMIN=${USE_PGADMIN}
|
||||||
|
USE_PGBOUNCER=${USE_PGBOUNCER}
|
||||||
|
|
||||||
# Which services are going to be brought up
|
# Which services are going to be brought up
|
||||||
COMPOSE_PROFILES=${SERVICES}
|
COMPOSE_PROFILES=${SERVICES}
|
||||||
@@ -144,20 +151,24 @@ ODOO_PROFILES="odoo"
|
|||||||
POSTGRES_PROFILES="postgres"
|
POSTGRES_PROFILES="postgres"
|
||||||
NGINX_PROFILES="nginx"
|
NGINX_PROFILES="nginx"
|
||||||
NGINX_PROXY_PROFILES="proxy"
|
NGINX_PROXY_PROFILES="proxy"
|
||||||
|
TRAEFIK_PROFILES="traefik"
|
||||||
ACME_COMPANION_PROFILES="acme"
|
ACME_COMPANION_PROFILES="acme"
|
||||||
KEYDB_PROFILES="keydb"
|
KEYDB_PROFILES="keydb"
|
||||||
MINIO_PROFILES="minio"
|
MINIO_PROFILES="minio"
|
||||||
PGADMIN_PROFILES="pgadmin"
|
PGADMIN_PROFILES="pgadmin"
|
||||||
|
PGBOUNCER_PROFILES="pgbouncer"
|
||||||
|
|
||||||
# Containers' Tags
|
# Containers' Tags
|
||||||
ODOO_TAG=17.0
|
ODOO_TAG=17.0
|
||||||
POSTGRES_TAG=16.4
|
POSTGRES_TAG=16.1
|
||||||
|
PGBOUNCER_TAG=latest
|
||||||
KEYDB_TAG=latest
|
KEYDB_TAG=latest
|
||||||
MINIO_TAG=latest
|
MINIO_TAG=latest
|
||||||
NGINX_TAG=1.25.3
|
NGINX_TAG=1.25.3
|
||||||
NGINX_PROXY_TAG=1.4.0
|
NGINX_PROXY_TAG=1.4.0
|
||||||
ACME_COMPANION_TAG=2.2.9
|
TRAEFIK_TAG=2.11
|
||||||
PGADMIN_TAG=8.11
|
ACME_COMPANION_TAG=2.2.10
|
||||||
|
PGADMIN_TAG=8.2
|
||||||
|
|
||||||
# Odoocker paths
|
# Odoocker paths
|
||||||
COMMUNITY_ADDONS=${ROOT_PATH}/addons
|
COMMUNITY_ADDONS=${ROOT_PATH}/addons
|
||||||
@@ -313,6 +324,40 @@ POSTGRES_USER=${POSTGRES_MAIN_USER}
|
|||||||
POSTGRES_PASSWORD=${POSTGRES_MAIN_PASSWORD}
|
POSTGRES_PASSWORD=${POSTGRES_MAIN_PASSWORD}
|
||||||
PGDATA=/var/lib/postgresql/data/${PROJECT_NAME}
|
PGDATA=/var/lib/postgresql/data/${PROJECT_NAME}
|
||||||
|
|
||||||
|
#---------------#
|
||||||
|
# Traefik #
|
||||||
|
#---------------#
|
||||||
|
# Volumes
|
||||||
|
ACME_JSON=/acme.json
|
||||||
|
TRAEFIK_LOGS=/var/log/traefik
|
||||||
|
|
||||||
|
# Command
|
||||||
|
API_DASHBOARD=true
|
||||||
|
API_INSECURE=true
|
||||||
|
API_DEBUG=false
|
||||||
|
ENTRYPOINTS_WEB_ADDRESS=:80
|
||||||
|
ENTRYPOINTS_WEBSECURE_ADDRESS=:443
|
||||||
|
TRAEFIK_LOG_LEVEL=INFO
|
||||||
|
ACCESSLOG_FILEPATH=${TRAEFIK_LOGS}/access.log
|
||||||
|
ACME_HTTPCHALLENGE=true
|
||||||
|
ACME_HTTPCHALLENGE_ENTRYPOINT=web
|
||||||
|
ACME_EMAIL=mail@example.com
|
||||||
|
ACME_STORAGE=${ACME_JSON}
|
||||||
|
# For prod use: https://acme-v02.api.letsencrypt.org/directory
|
||||||
|
ACME_CASERVER=https://acme-staging-v02.api.letsencrypt.org/directory
|
||||||
|
INSERCURE_SKIP_VERIFY=true
|
||||||
|
|
||||||
|
# Labels
|
||||||
|
TRAEFIK_ENABLE=true
|
||||||
|
HTTP_CATCHALL_ENTRYPOINTS=web
|
||||||
|
HTTP_CATCHALL_MIDDLEWARES=redirect-to-https
|
||||||
|
MIDDLEWARES_REDIRECT_SCHEME=https
|
||||||
|
|
||||||
|
TRAEFIK_DASHBOARD_DOMAIN=traefik.odoocker.test
|
||||||
|
TRAEFIK_DASHBOARD_ENTRYPOINTS=websecure
|
||||||
|
TRAEFIK_DASHBOARD_TLS_CERTRESOLVER=leresolver
|
||||||
|
TRAEFIK_DASHBOARD_SERVICE=api@internal
|
||||||
|
|
||||||
#-------------#
|
#-------------#
|
||||||
# Nginx #
|
# Nginx #
|
||||||
#-------------#
|
#-------------#
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -10,5 +10,4 @@ docker-compose.override.yml
|
|||||||
# Ignores any __pycache__ folder.
|
# Ignores any __pycache__ folder.
|
||||||
__pycache__
|
__pycache__
|
||||||
|
|
||||||
# Ignores upgrade files
|
|
||||||
upgrade/
|
upgrade/
|
||||||
|
|||||||
@@ -12,6 +12,11 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
|
|
||||||
|
pgbouncer:
|
||||||
|
restart: 'no'
|
||||||
|
expose:
|
||||||
|
- 5432/tcp
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
restart: 'no'
|
restart: 'no'
|
||||||
|
|
||||||
@@ -21,13 +26,19 @@ services:
|
|||||||
- 80:80
|
- 80:80
|
||||||
- 443:443
|
- 443:443
|
||||||
|
|
||||||
letsencrypt:
|
traefik:
|
||||||
|
restart: 'no'
|
||||||
|
ports:
|
||||||
|
- 80:80
|
||||||
|
- 443:443
|
||||||
|
|
||||||
|
acme-companion:
|
||||||
restart: 'no'
|
restart: 'no'
|
||||||
|
|
||||||
redis:
|
keydb:
|
||||||
restart: 'no'
|
restart: 'no'
|
||||||
|
|
||||||
s3:
|
minio:
|
||||||
restart: 'no'
|
restart: 'no'
|
||||||
|
|
||||||
pgadmin:
|
pgadmin:
|
||||||
|
|||||||
@@ -12,6 +12,11 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:5432:5432
|
- 127.0.0.1:5432:5432
|
||||||
|
|
||||||
|
pgbouncer:
|
||||||
|
restart: unless-stopped
|
||||||
|
expose:
|
||||||
|
- 5432/tcp
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
@@ -21,13 +26,31 @@ services:
|
|||||||
- 80:80
|
- 80:80
|
||||||
- 443:443
|
- 443:443
|
||||||
|
|
||||||
letsencrypt:
|
traefik:
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- 80:80
|
||||||
|
- 443:443
|
||||||
|
command:
|
||||||
|
- --entrypoints.websecure.address=${ENTRYPOINTS_WEBSECURE_ADDRESS}
|
||||||
|
- --certificatesresolvers.leresolver.acme.httpchallenge=${ACME_HTTPCHALLENGE}
|
||||||
|
- --certificatesresolvers.leresolver.acme.httpchallenge.entrypoint=${ACME_HTTPCHALLENGE_ENTRYPOINT}
|
||||||
|
- --certificatesresolvers.leresolver.acme.email=${ACME_EMAIL}
|
||||||
|
- --certificatesresolvers.leresolver.acme.storage=${ACME_STORAGE}
|
||||||
|
- --certificatesresolvers.leresolver.acme.caserver=${ACME_CASERVER}
|
||||||
|
labels:
|
||||||
|
- traefik.http.routers.http-catchall.middlewares=${HTTP_CATCHALL_MIDDLEWARES}
|
||||||
|
- traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=${MIDDLEWARES_REDIRECT_SCHEME}
|
||||||
|
- traefik.http.routers.traefik-dashboard.entrypoints=${TRAEFIK_DASHBOARD_ENTRYPOINTS}
|
||||||
|
- traefik.http.routers.traefik-dashboard.tls.certresolver=${TRAEFIK_DASHBOARD_TLS_CERTRESOLVER}
|
||||||
|
|
||||||
|
acme-companion:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
redis:
|
keydb:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
s3:
|
minio:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
pgadmin:
|
pgadmin:
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
odoo:
|
odoo:
|
||||||
|
container_name: odoo
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: ./odoo/Dockerfile
|
dockerfile: ./odoo/Dockerfile
|
||||||
@@ -18,6 +19,7 @@ services:
|
|||||||
- USE_S3
|
- USE_S3
|
||||||
- USE_SENTRY
|
- USE_SENTRY
|
||||||
tty: true
|
tty: true
|
||||||
|
shm_size: 1gb
|
||||||
volumes:
|
volumes:
|
||||||
- odoo-data:${DATA_DIR}
|
- odoo-data:${DATA_DIR}
|
||||||
- ./odoo/extra-addons:${EXTRA_ADDONS}
|
- ./odoo/extra-addons:${EXTRA_ADDONS}
|
||||||
@@ -55,12 +57,14 @@ services:
|
|||||||
profiles: [$ODOO_PROFILES]
|
profiles: [$ODOO_PROFILES]
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
|
container_name: postgres
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: ./postgres/Dockerfile
|
dockerfile: ./postgres/Dockerfile
|
||||||
args:
|
args:
|
||||||
- POSTGRES_TAG
|
- POSTGRES_TAG
|
||||||
tty: true
|
tty: true
|
||||||
|
shm_size: 1gb
|
||||||
volumes:
|
volumes:
|
||||||
- pg-data:${PGDATA}
|
- pg-data:${PGDATA}
|
||||||
- ./postgres/entrypoint.sh:/docker-entrypoint-initdb.d/entrypoint.sh
|
- ./postgres/entrypoint.sh:/docker-entrypoint-initdb.d/entrypoint.sh
|
||||||
@@ -79,13 +83,30 @@ services:
|
|||||||
- internal
|
- internal
|
||||||
profiles: [$POSTGRES_PROFILES]
|
profiles: [$POSTGRES_PROFILES]
|
||||||
|
|
||||||
|
pgbouncer:
|
||||||
|
image: edoburu/pgbouncer:latest
|
||||||
|
container_name: pgbouncer
|
||||||
|
restart: always
|
||||||
|
depends_on:
|
||||||
|
- postgres
|
||||||
|
environment:
|
||||||
|
- DB_HOST=${DB_HOST}
|
||||||
|
- DB_USER=${DB_USER}
|
||||||
|
- DB_PASSWORD=${DB_PASSWORD}
|
||||||
|
- MAX_CLIENT_CONN=${MAX_CLIENT_CONN}
|
||||||
|
- POOL_MODE=${POOL_MODE}
|
||||||
|
- ADMIN_USERS=${ADMIN_USERS}
|
||||||
|
profiles: [$PGBOUNCER_PROFILES]
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
|
container_name: nginx
|
||||||
image: nginx:${NGINX_TAG}
|
image: nginx:${NGINX_TAG}
|
||||||
depends_on:
|
depends_on:
|
||||||
- odoo
|
- odoo
|
||||||
tty: true
|
tty: true
|
||||||
expose:
|
expose:
|
||||||
- 80/tcp
|
- 80/tcp
|
||||||
|
shm_size: 1gb
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx/nginx.conf:${NGINX_CONF}
|
- ./nginx/nginx.conf:${NGINX_CONF}
|
||||||
- ./nginx/default.conf:${NGINX_DEFAULT_CONF}
|
- ./nginx/default.conf:${NGINX_DEFAULT_CONF}
|
||||||
@@ -99,10 +120,12 @@ services:
|
|||||||
profiles: [$NGINX_PROFILES]
|
profiles: [$NGINX_PROFILES]
|
||||||
|
|
||||||
nginx-proxy:
|
nginx-proxy:
|
||||||
|
container_name: nginx-proxy
|
||||||
image: nginxproxy/nginx-proxy:${NGINX_PROXY_TAG}
|
image: nginxproxy/nginx-proxy:${NGINX_PROXY_TAG}
|
||||||
depends_on:
|
depends_on:
|
||||||
- nginx
|
- nginx
|
||||||
tty: true
|
tty: true
|
||||||
|
shm_size: 1gb
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx-proxy/nginx.conf:${NGINX_CONF}
|
- ./nginx-proxy/nginx.conf:${NGINX_CONF}
|
||||||
- ./nginx-proxy/cors.conf:${NGINX_PROXY_CORS_CONF}
|
- ./nginx-proxy/cors.conf:${NGINX_PROXY_CORS_CONF}
|
||||||
@@ -117,7 +140,38 @@ services:
|
|||||||
- internal
|
- internal
|
||||||
profiles: [$NGINX_PROXY_PROFILES]
|
profiles: [$NGINX_PROXY_PROFILES]
|
||||||
|
|
||||||
letsencrypt:
|
traefik:
|
||||||
|
container_name: traefik
|
||||||
|
image: "traefik:${TRAEFIK_TAG}"
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
command:
|
||||||
|
- --api.dashboard=${API_DASHBOARD}
|
||||||
|
- --api.insecure=${API_INSECURE}
|
||||||
|
- --api.debug=${API_DEBUG}
|
||||||
|
- --entrypoints.web.address=${ENTRYPOINTS_WEB_ADDRESS}
|
||||||
|
- --providers.docker
|
||||||
|
- --log.level=${TRAEFIK_LOG_LEVEL}
|
||||||
|
- --accesslog.filepath=${ACCESSLOG_FILEPATH}
|
||||||
|
- --serversTransport.insecureSkipVerify=${INSERCURE_SKIP_VERIFY}
|
||||||
|
tty: true
|
||||||
|
shm_size: 1gb
|
||||||
|
volumes:
|
||||||
|
- ${DOCKER_SOCK}:${DOCKER_SOCK}:ro
|
||||||
|
- ./acme.json:${ACME_JSON}
|
||||||
|
- traefik_logs:${TRAEFIK_LOGS}
|
||||||
|
labels:
|
||||||
|
- traefik.enable=${TRAEFIK_ENABLE}
|
||||||
|
# Catch all HTTP trafic and redirect it to HTTPS
|
||||||
|
- traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)
|
||||||
|
- traefik.http.routers.http-catchall.entrypoints=${HTTP_CATCHALL_ENTRYPOINTS}
|
||||||
|
# Traefik Dashboard route
|
||||||
|
- traefik.http.routers.traefik-dashboard.rule=Host(`${TRAEFIK_DASHBOARD_DOMAIN}`)
|
||||||
|
- traefik.http.routers.traefik-dashboard.service=${TRAEFIK_DASHBOARD_SERVICE}
|
||||||
|
profiles: [$TRAEFIK_PROFILES]
|
||||||
|
|
||||||
|
acme-companion:
|
||||||
|
container_name: acme-companion
|
||||||
image: nginxproxy/acme-companion:${ACME_COMPANION_TAG}
|
image: nginxproxy/acme-companion:${ACME_COMPANION_TAG}
|
||||||
depends_on:
|
depends_on:
|
||||||
- nginx-proxy
|
- nginx-proxy
|
||||||
@@ -135,7 +189,8 @@ services:
|
|||||||
- internal
|
- internal
|
||||||
profiles: [$ACME_COMPANION_PROFILES]
|
profiles: [$ACME_COMPANION_PROFILES]
|
||||||
|
|
||||||
redis:
|
keydb:
|
||||||
|
container_name: keydb
|
||||||
image: eqalpha/keydb:${KEYDB_TAG}
|
image: eqalpha/keydb:${KEYDB_TAG}
|
||||||
platform: linux/amd64
|
platform: linux/amd64
|
||||||
ports:
|
ports:
|
||||||
@@ -146,7 +201,8 @@ services:
|
|||||||
- internal
|
- internal
|
||||||
profiles: [$KEYDB_PROFILES]
|
profiles: [$KEYDB_PROFILES]
|
||||||
|
|
||||||
s3:
|
minio:
|
||||||
|
container_name: minio
|
||||||
image: minio/minio:${MINIO_TAG}
|
image: minio/minio:${MINIO_TAG}
|
||||||
environment:
|
environment:
|
||||||
- MINIO_ROOT_USER
|
- MINIO_ROOT_USER
|
||||||
@@ -155,6 +211,7 @@ services:
|
|||||||
- VIRTUAL_HOST=${MINIO_VIRTUAL_HOST}
|
- VIRTUAL_HOST=${MINIO_VIRTUAL_HOST}
|
||||||
- VIRTUAL_PORT=${MINIO_CONSOLE_PORT}
|
- VIRTUAL_PORT=${MINIO_CONSOLE_PORT}
|
||||||
command: server ${MINIO_DATA} --console-address ":${MINIO_CONSOLE_PORT}"
|
command: server ${MINIO_DATA} --console-address ":${MINIO_CONSOLE_PORT}"
|
||||||
|
shm_size: 1gb
|
||||||
volumes:
|
volumes:
|
||||||
- s3-data:${MINIO_DATA}
|
- s3-data:${MINIO_DATA}
|
||||||
ports:
|
ports:
|
||||||
@@ -165,6 +222,7 @@ services:
|
|||||||
profiles: [$MINIO_PROFILES]
|
profiles: [$MINIO_PROFILES]
|
||||||
|
|
||||||
pgadmin:
|
pgadmin:
|
||||||
|
container_name: pgadmin
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: ./pgadmin/Dockerfile
|
dockerfile: ./pgadmin/Dockerfile
|
||||||
@@ -174,6 +232,7 @@ services:
|
|||||||
- nginx-proxy
|
- nginx-proxy
|
||||||
expose:
|
expose:
|
||||||
- 80
|
- 80
|
||||||
|
shm_size: 1gb
|
||||||
volumes:
|
volumes:
|
||||||
- pgadmin-data:${PGADMIN_DATA}
|
- pgadmin-data:${PGADMIN_DATA}
|
||||||
environment:
|
environment:
|
||||||
@@ -216,6 +275,7 @@ volumes:
|
|||||||
vhost:
|
vhost:
|
||||||
certs:
|
certs:
|
||||||
acme:
|
acme:
|
||||||
|
traefik_logs:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
#------------------------#
|
#------------------------#
|
||||||
# Odoo Community #
|
# Odoo Community #
|
||||||
#------------------------#
|
#------------------------#
|
||||||
FROM odoo:17.0
|
ARG ODOO_TAG
|
||||||
|
FROM odoo:${ODOO_TAG}
|
||||||
|
|
||||||
# Switch to root user
|
# Switch to root user
|
||||||
USER root
|
USER root
|
||||||
@@ -48,7 +49,6 @@ RUN apt-get update && apt-get install -y \
|
|||||||
# `zip` and `unzip` for filestore management
|
# `zip` and `unzip` for filestore management
|
||||||
zip \
|
zip \
|
||||||
unzip \
|
unzip \
|
||||||
rsync \
|
|
||||||
# `git` required packages
|
# `git` required packages
|
||||||
git \
|
git \
|
||||||
git-man \
|
git-man \
|
||||||
|
|||||||
@@ -82,8 +82,6 @@ expand_env_vars() {
|
|||||||
done <<< "$1"
|
done <<< "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
mkdir -p ${THIRD_PARTY_ADDONS}
|
|
||||||
|
|
||||||
# Read the configuration file and process each line
|
# Read the configuration file and process each line
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
mkdir -p ${ENTERPRISE_ADDONS}
|
mkdir -p ${ENTERPRISE_ADDONS}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
Goes Here
|
Goes Here
|
||||||
''',
|
''',
|
||||||
'version': '1.0.0', # (X.Y.Z.W) X: Odoo Version (not present), Y: Major Upgrade, Z: Bugfix, W: Minor Upgrade
|
'version': '1.0.0', # (X.Y.Z.W) X: Odoo Version (not present), Y: Major Upgrade, Z: Bugfix, W: Minor Upgrade
|
||||||
'category': 'Uncategorized', # Possible values: [https://github.com/odoo/odoo/blob/17.0/odoo/addons/base/data/ir_module_category_data.xml]
|
'category': 'Uncategorized', # Possible values: [https://github.com/odoo/odoo/blob/16.0/odoo/addons/base/data/ir_module_category_data.xml]
|
||||||
'license': 'LGPL-3',
|
'license': 'LGPL-3',
|
||||||
'sequence': 100, # Order in which the module will be displayed
|
'sequence': 100, # Order in which the module will be displayed
|
||||||
# Author, Pricing, Licensing, and Support Info
|
# Author, Pricing, Licensing, and Support Info
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
debugpy
|
debugpy==1.8.0
|
||||||
websocket-client
|
websocket-client==1.7.0
|
||||||
redis
|
redis==5.0.1
|
||||||
boto3
|
boto3==1.34.23
|
||||||
sentry-sdk==1.9.0 # Fixed because Odoo depends on urllib3==1.26.5
|
sentry-sdk==1.9.0 # Fixed because Odoo depends on urllib3==1.26.5
|
||||||
|
|||||||
20
pgbouncer/docker-entrypoint-initdb.d/init.sh
Normal file
20
pgbouncer/docker-entrypoint-initdb.d/init.sh
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
||||||
|
CREATE USER dbuser WITH ENCRYPTED PASSWORD 'dbuser';
|
||||||
|
CREATE DATABASE dbuser OWNER dbuser;
|
||||||
|
|
||||||
|
CREATE USER user1 WITH ENCRYPTED PASSWORD 'user1';
|
||||||
|
CREATE DATABASE user1 OWNER user1;
|
||||||
|
|
||||||
|
CREATE USER user2 WITH ENCRYPTED PASSWORD 'user2';
|
||||||
|
CREATE DATABASE user2 OWNER user2;
|
||||||
|
|
||||||
|
CREATE USER user3 WITH ENCRYPTED PASSWORD 'user3';
|
||||||
|
CREATE DATABASE user3 OWNER user3;
|
||||||
|
|
||||||
|
CREATE USER odoo WITH ENCRYPTED PASSWORD 'odoo';
|
||||||
|
CREATE DATABASE odoo OWNER odoo;
|
||||||
|
|
||||||
|
EOSQL
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
FROM postgres:16.4
|
ARG POSTGRES_TAG
|
||||||
|
FROM postgres:${POSTGRES_TAG}
|
||||||
|
|
||||||
#------------------------#
|
#------------------------#
|
||||||
# APT Dependencies #
|
# APT Dependencies #
|
||||||
|
|||||||
0
traefik/acme.json
Normal file
0
traefik/acme.json
Normal file
Reference in New Issue
Block a user