40 Commits

Author SHA1 Message Date
Yhael S
bf0448db33 fixed containers build with pgbouncer 2024-07-15 22:27:17 -06:00
Yhael S
d0bfa83653 cleanup 2024-07-15 22:15:51 -06:00
Yhael S
5eff644269 cleanup 2024-07-15 22:14:53 -06:00
Yhael S
e499f951d2 Merge pull request #18 from codeagencybe/pgbouncer
Fabio | Feature | PgBouncer service
2024-07-15 22:12:44 -06:00
Yhael S
e05f5333bd Merge branch 'main' into develop 2024-07-15 22:03:05 -06:00
Yhael S
53f235a619 Merge pull request #22 from norlinhenrik/main-readme-prod-env
[IMP] README.md: production: Update .env SERVICES and ACME_CA_URI
2024-07-15 21:54:19 -06:00
Henrik Norlin
4f1132afef [IMP] README.md: Quick Setup Guide: cd odoocker 2024-06-02 12:17:02 +02:00
Henrik Norlin
faa6cf6b4c [IMP] README.md: production: Update .env SERVICES and ACME_CA_URI 2024-06-02 11:19:08 +02:00
Yhael S
0ab69e43a5 cleanup 2024-01-23 14:10:18 -06:00
Fabio Tielen // Code Agency
9d13ed0db1 feat(docker): Integrate PgBouncer for connection poolingAdd PgBouncer service to the docker-compose setup for improved database connection management. Update .env.example to include new PgBouncer environment variables and service inclusion. Add PgBouncer profiles and tags to docker-compose.yml and override files for local and production configurations. Include PgBouncer initialization script for database user setup 2024-01-20 17:55:25 +01:00
Yhael S
d8f96573e3 fixed service names 2024-01-20 06:38:04 -06:00
Yhael S
cf6d846723 Merge pull request #17 from codeagencybe/shm_size
Fabio | Enhancement | Configure shm_size
2024-01-20 05:22:37 -07:00
Yhael S
21e5c4ecde cleanup 2024-01-20 06:21:46 -06:00
Yhael S
ecc5481be4 added container names 2024-01-20 06:20:58 -06:00
Yhael S
10d0388a1b Merge branch 'main' into shm_size 2024-01-20 06:17:44 -06:00
Yhael S
2f1f6fc63b Merge pull request #16 from codeagencybe/main
Fabio | Feature | Traefik reverse proxy
2024-01-20 05:16:28 -07:00
Yhael S
5620db94a1 added environment variables 2024-01-20 06:11:18 -06:00
Fabio Tielen // Code Agency
08b506972a Add shm_size configuration to services 2024-01-10 14:27:56 +01:00
Fabio Tielen // Code Agency
32f16fee74 ADD: Traefik support - initial commit 2024-01-10 14:13:35 +01:00
yhaelopez
7568dbc44f cleanup 2023-12-24 12:55:39 -07:00
yhaelopez
77edc03b91 refactored enterprise + third party addons clonning process 2023-12-24 12:22:16 -07:00
yhaelopez
6fd07e113a cleanup 2023-12-19 21:04:12 -07:00
yhaelopez
bf51474d47 cleanup 2023-12-19 19:37:24 -07:00
yhaelopez
137e653d7f fixed pgadmin 2023-12-19 03:01:15 -07:00
yhaelopez
f2be28ff3e upgrade: third party public and private addons are now dynamically cloned and extensible with a handy format 2023-12-19 02:17:56 -07:00
yhaelopez
f9a6d5c1ab fixed urllib3 to 1.26.5 2023-12-18 17:15:10 -07:00
yhaelopez
d3e819b4b6 cleanup 2023-12-18 17:01:04 -07:00
yhaelopez
1a191383fa cleanup 2023-12-18 16:51:49 -07:00
yhaelopez
f29066cc16 cleanup 2023-12-18 16:50:26 -07:00
yhaelopez
649c51cc9c Merge branch '17.0' 2023-12-15 17:37:01 -07:00
yhaelopez
ecac58a89e cleanup 2023-12-15 17:21:02 -07:00
yhaelopez
c677cdd69e cleanup 2023-12-15 17:00:05 -07:00
yhaelopez
fa93ecd4f4 cleanup 2023-12-15 16:58:19 -07:00
yhaelopez
2076c8ddfa upgrade 2023-12-15 16:55:25 -07:00
yhaelopez
98b94b6f86 version 17 first release 2023-12-12 21:40:17 -07:00
yhaelopez
eaa7826e4b Merge branch 'main' into 16.0 2023-12-12 19:17:30 -07:00
yhaelopez
3127152a17 Merge branch 'main' into 16.0 2023-12-12 19:14:36 -07:00
Yhael S
187f18440e Merge branch 'main' into 16.0 2023-08-30 20:15:24 -05:00
Yhael S
1cb579cd36 Merge branch 'main' into 16.0 2023-08-30 20:14:34 -05:00
Yhael S
e1dcc69b5b delete test user & token 2023-08-29 03:55:58 -05:00
13 changed files with 188 additions and 28 deletions

View File

@@ -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=14.0 ODOO_TAG=17.0
POSTGRES_TAG=16.1 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.1 ACME_COMPANION_TAG=2.2.10
PGADMIN_TAG=8.2
# Odoocker paths # Odoocker paths
COMMUNITY_ADDONS=${ROOT_PATH}/addons COMMUNITY_ADDONS=${ROOT_PATH}/addons
@@ -202,7 +213,7 @@ DEBUG_INTERFACE=${HTTP_INTERFACE}
HTTP_PORT=8069 HTTP_PORT=8069
DEBUG_PORT=8070 DEBUG_PORT=8070
XMLRPCS_PORT=8071 XMLRPCS_PORT=8071
LONGPOLLING_PORT=8072 GEVENT_PORT=8072
HTTP_ENABLE=True HTTP_ENABLE=True
XMLRPCS=True XMLRPCS=True
PROXY_MODE=True PROXY_MODE=True
@@ -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 #
#-------------# #-------------#

2
.gitignore vendored
View File

@@ -9,3 +9,5 @@ docker-compose.override.yml
# Ignores any __pycache__ folder. # Ignores any __pycache__ folder.
__pycache__ __pycache__
upgrade/

View File

@@ -43,6 +43,7 @@ In essence, Odoocker isn't just another tool, it's a philosophy. So, whether you
1. **Clone and Configure**: 1. **Clone and Configure**:
``` ```
git clone git@github.com:odoocker/odoocker.git git clone git@github.com:odoocker/odoocker.git
cd odoocker
cp .env.example .env && cp docker-compose.override.local.yml docker-compose.override.yml cp .env.example .env && cp docker-compose.override.local.yml docker-compose.override.yml
``` ```
2. **Hosts & Domains**: To ensure everything runs smoothly, remember to add the necessary domains to your hosts file. 2. **Hosts & Domains**: To ensure everything runs smoothly, remember to add the necessary domains to your hosts file.
@@ -155,6 +156,7 @@ docker-compose down
``` ```
cp docker-compose.override.production.yml docker-compose.override.yml cp docker-compose.override.production.yml docker-compose.override.yml
``` ```
- Update .env `SERVICES` (add `acme`) and `ACME_CA_URI` (use production link).
- Make sure the DNS record of your `DOMAIN` is pointing to your server. - Make sure the DNS record of your `DOMAIN` is pointing to your server.
- Rebuild the containers - Rebuild the containers
``` ```

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

View File

@@ -40,7 +40,7 @@ server {
} }
} }
location /longpolling { location /websocket {
proxy_pass http://odoo:8072; proxy_pass http://odoo:8072;
proxy_redirect off; proxy_redirect off;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;

View File

@@ -53,7 +53,7 @@ RUN apt-get update && apt-get install -y \
git \ git \
git-man \ git-man \
less \ less \
libcbor0 \ libcbor0.8 \
libcurl3-gnutls \ libcurl3-gnutls \
libedit2 \ libedit2 \
liberror-perl \ liberror-perl \
@@ -78,10 +78,8 @@ RUN python3 -m pip install -r /tmp/requirements.txt && \
# Odoo Enterprise + Third Party Addons # # Odoo Enterprise + Third Party Addons #
#--------------------------------------------# #--------------------------------------------#
# Create third-party-addons directory and clone them # Create third-party-addons directory and clone them
RUN mkdir -p ${THIRD_PARTY_ADDONS}
COPY --chown=odoo:odoo ./odoo/clone-addons.sh / COPY --chown=odoo:odoo ./odoo/clone-addons.sh /
COPY --chown=odoo:odoo ./odoo/third-party-addons.txt / COPY --chown=odoo:odoo ./odoo/third-party-addons.txt /
# RUN /clone-addons.sh && chown odoo:odoo -R ${THIRD_PARTY_ADDONS}
RUN /clone-addons.sh RUN /clone-addons.sh
#-----------------------# #-----------------------#

View File

@@ -25,7 +25,7 @@ clone_and_copy_modules() {
# Clone and copy logic for enterprise repository # Clone and copy logic for enterprise repository
if [[ $repo_type == "enterprise" ]]; then if [[ $repo_type == "enterprise" ]]; then
if [[ ! -d "${ENTERPRISE_ADDONS}" ]] && [ -n "$GITHUB_USER" ] && [ -n "$GITHUB_ACCESS_TOKEN" ]; then if [ -n "$GITHUB_USER" ] && [ -n "$GITHUB_ACCESS_TOKEN" ]; then
$clone_cmd --depth 1 --branch ${ODOO_TAG} --single-branch --no-tags $clone_cmd --depth 1 --branch ${ODOO_TAG} --single-branch --no-tags
fi fi
else else
@@ -84,6 +84,8 @@ expand_env_vars() {
# 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 ${THIRD_PARTY_ADDONS}
[[ -z "$line" || "$line" == \#* ]] && continue [[ -z "$line" || "$line" == \#* ]] && continue
clone_and_copy_modules $(expand_env_vars "$line") clone_and_copy_modules $(expand_env_vars "$line")
done < "third-party-addons.txt" done < "third-party-addons.txt"

View File

@@ -64,8 +64,8 @@ xmlrpcs_interface = ${XMLRPCS_INTERFACE}
; --xmlrpcs-port ; --xmlrpcs-port
xmlrpcs_port = ${XMLRPCS_PORT} xmlrpcs_port = ${XMLRPCS_PORT}
; --longpolling-port ; --gevent-port
longpolling_port = ${LONGPOLLING_PORT} gevent_port = ${GEVENT_PORT}
; --no-http | --no-xmlrpc ; --no-http | --no-xmlrpc
http_enable = ${HTTP_ENABLE} http_enable = ${HTTP_ENABLE}

View File

@@ -1,8 +1,5 @@
jinja2 debugpy==1.8.0
sortedcontainers websocket-client==1.7.0
debugpy redis==5.0.1
websocket-client boto3==1.34.23
redis
boto3
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
aiohttp

View 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

0
traefik/acme.json Normal file
View File