mirror of
https://github.com/odoocker/odoocker
synced 2025-11-04 23:29:19 +01:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c5b7d3a6ba | ||
|
|
da8c682701 | ||
|
|
c2708e6dd8 | ||
|
|
b905b4ef18 | ||
|
|
47f0c95a33 | ||
|
|
c926027fc2 | ||
|
|
9b589c0332 |
53
.env.example
53
.env.example
@@ -22,7 +22,6 @@ 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=
|
||||||
@@ -47,11 +46,6 @@ 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
|
||||||
@@ -109,7 +103,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://minio:${S3_API_PORT}
|
AWS_HOST=http://s3:${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
|
||||||
@@ -141,7 +135,6 @@ 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}
|
||||||
@@ -151,24 +144,20 @@ 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=16.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
|
||||||
TRAEFIK_TAG=2.11
|
ACME_COMPANION_TAG=2.2.9
|
||||||
ACME_COMPANION_TAG=2.2.10
|
PGADMIN_TAG=8.1
|
||||||
PGADMIN_TAG=8.2
|
|
||||||
|
|
||||||
# Odoocker paths
|
# Odoocker paths
|
||||||
COMMUNITY_ADDONS=${ROOT_PATH}/addons
|
COMMUNITY_ADDONS=${ROOT_PATH}/addons
|
||||||
@@ -324,40 +313,6 @@ 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
2
.gitignore
vendored
@@ -9,5 +9,3 @@ docker-compose.override.yml
|
|||||||
|
|
||||||
# Ignores any __pycache__ folder.
|
# Ignores any __pycache__ folder.
|
||||||
__pycache__
|
__pycache__
|
||||||
|
|
||||||
upgrade/
|
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ 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.
|
||||||
@@ -156,7 +155,6 @@ 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
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -12,11 +12,6 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
|
|
||||||
pgbouncer:
|
|
||||||
restart: 'no'
|
|
||||||
expose:
|
|
||||||
- 5432/tcp
|
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
restart: 'no'
|
restart: 'no'
|
||||||
|
|
||||||
@@ -26,19 +21,13 @@ services:
|
|||||||
- 80:80
|
- 80:80
|
||||||
- 443:443
|
- 443:443
|
||||||
|
|
||||||
traefik:
|
letsencrypt:
|
||||||
restart: 'no'
|
|
||||||
ports:
|
|
||||||
- 80:80
|
|
||||||
- 443:443
|
|
||||||
|
|
||||||
acme-companion:
|
|
||||||
restart: 'no'
|
restart: 'no'
|
||||||
|
|
||||||
keydb:
|
redis:
|
||||||
restart: 'no'
|
restart: 'no'
|
||||||
|
|
||||||
minio:
|
s3:
|
||||||
restart: 'no'
|
restart: 'no'
|
||||||
|
|
||||||
pgadmin:
|
pgadmin:
|
||||||
|
|||||||
@@ -12,11 +12,6 @@ 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
|
||||||
|
|
||||||
@@ -26,31 +21,13 @@ services:
|
|||||||
- 80:80
|
- 80:80
|
||||||
- 443:443
|
- 443:443
|
||||||
|
|
||||||
traefik:
|
letsencrypt:
|
||||||
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
|
||||||
|
|
||||||
keydb:
|
redis:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
minio:
|
s3:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
pgadmin:
|
pgadmin:
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
services:
|
services:
|
||||||
odoo:
|
odoo:
|
||||||
container_name: odoo
|
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: ./odoo/Dockerfile
|
dockerfile: ./odoo/Dockerfile
|
||||||
@@ -19,7 +18,6 @@ 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}
|
||||||
@@ -57,14 +55,12 @@ 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
|
||||||
@@ -83,30 +79,13 @@ 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}
|
||||||
@@ -120,12 +99,10 @@ 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}
|
||||||
@@ -140,38 +117,7 @@ services:
|
|||||||
- internal
|
- internal
|
||||||
profiles: [$NGINX_PROXY_PROFILES]
|
profiles: [$NGINX_PROXY_PROFILES]
|
||||||
|
|
||||||
traefik:
|
letsencrypt:
|
||||||
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
|
||||||
@@ -189,8 +135,7 @@ services:
|
|||||||
- internal
|
- internal
|
||||||
profiles: [$ACME_COMPANION_PROFILES]
|
profiles: [$ACME_COMPANION_PROFILES]
|
||||||
|
|
||||||
keydb:
|
redis:
|
||||||
container_name: keydb
|
|
||||||
image: eqalpha/keydb:${KEYDB_TAG}
|
image: eqalpha/keydb:${KEYDB_TAG}
|
||||||
platform: linux/amd64
|
platform: linux/amd64
|
||||||
ports:
|
ports:
|
||||||
@@ -201,8 +146,7 @@ services:
|
|||||||
- internal
|
- internal
|
||||||
profiles: [$KEYDB_PROFILES]
|
profiles: [$KEYDB_PROFILES]
|
||||||
|
|
||||||
minio:
|
s3:
|
||||||
container_name: minio
|
|
||||||
image: minio/minio:${MINIO_TAG}
|
image: minio/minio:${MINIO_TAG}
|
||||||
environment:
|
environment:
|
||||||
- MINIO_ROOT_USER
|
- MINIO_ROOT_USER
|
||||||
@@ -211,7 +155,6 @@ 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:
|
||||||
@@ -222,7 +165,6 @@ services:
|
|||||||
profiles: [$MINIO_PROFILES]
|
profiles: [$MINIO_PROFILES]
|
||||||
|
|
||||||
pgadmin:
|
pgadmin:
|
||||||
container_name: pgadmin
|
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: ./pgadmin/Dockerfile
|
dockerfile: ./pgadmin/Dockerfile
|
||||||
@@ -232,7 +174,6 @@ services:
|
|||||||
- nginx-proxy
|
- nginx-proxy
|
||||||
expose:
|
expose:
|
||||||
- 80
|
- 80
|
||||||
shm_size: 1gb
|
|
||||||
volumes:
|
volumes:
|
||||||
- pgadmin-data:${PGADMIN_DATA}
|
- pgadmin-data:${PGADMIN_DATA}
|
||||||
environment:
|
environment:
|
||||||
@@ -275,7 +216,6 @@ volumes:
|
|||||||
vhost:
|
vhost:
|
||||||
certs:
|
certs:
|
||||||
acme:
|
acme:
|
||||||
traefik_logs:
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ RUN apt-get update && apt-get install -y \
|
|||||||
git \
|
git \
|
||||||
git-man \
|
git-man \
|
||||||
less \
|
less \
|
||||||
libcbor0.8 \
|
libcbor0 \
|
||||||
libcurl3-gnutls \
|
libcurl3-gnutls \
|
||||||
libedit2 \
|
libedit2 \
|
||||||
liberror-perl \
|
liberror-perl \
|
||||||
@@ -78,8 +78,10 @@ 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
|
||||||
|
|
||||||
#-----------------------#
|
#-----------------------#
|
||||||
|
|||||||
@@ -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 [ -n "$GITHUB_USER" ] && [ -n "$GITHUB_ACCESS_TOKEN" ]; then
|
if [[ ! -d "${ENTERPRISE_ADDONS}" ]] && [ -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,8 +84,6 @@ 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"
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ xmlrpcs_interface = ${XMLRPCS_INTERFACE}
|
|||||||
; --xmlrpcs-port
|
; --xmlrpcs-port
|
||||||
xmlrpcs_port = ${XMLRPCS_PORT}
|
xmlrpcs_port = ${XMLRPCS_PORT}
|
||||||
|
|
||||||
; --gevent-port
|
; --gevent-port | --longpolling-port (deprecated)
|
||||||
gevent_port = ${GEVENT_PORT}
|
gevent_port = ${GEVENT_PORT}
|
||||||
|
|
||||||
; --no-http | --no-xmlrpc
|
; --no-http | --no-xmlrpc
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
debugpy==1.8.0
|
debugpy
|
||||||
websocket-client==1.7.0
|
websocket-client
|
||||||
redis==5.0.1
|
redis
|
||||||
boto3==1.34.23
|
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
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
#!/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
|
|
||||||
Reference in New Issue
Block a user