[REF]Huge improvements on defaults vars, images...

This commit is contained in:
Fabien BOURGEOIS 2020-05-13 11:27:10 +02:00
parent 2d9c07c08b
commit ad3dacb5e8
11 changed files with 10 additions and 450 deletions

View File

@ -2,7 +2,9 @@ FROM nginx:stable
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com> MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
# Default variables # Default variables
ENV NGINX_HOST localhost ENV NGINX_HOST localhost 127.0.0.1
ENV NGINX_PORT 80
ENV NGINX_SSL_PORT 443
# Create sensible CERTS # Create sensible CERTS
RUN mkdir /etc/nginx/certs RUN mkdir /etc/nginx/certs

View File

@ -2,24 +2,12 @@ version: '2.2'
services: services:
postgres95: postgres95:
image: registry.yaltik.net/postgres:yaltik95 image: registry.yaltik.net/postgres:yaltik95
environment:
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
PGDATA: /opt/odoo/pgdata
postgres96: postgres96:
image: registry.yaltik.net/postgres:yaltik96 image: registry.yaltik.net/postgres:yaltik96
environment:
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
PGDATA: /opt/odoo/pgdata
postgres10: postgres10:
image: registry.yaltik.net/postgres:yaltik10 image: registry.yaltik.net/postgres:yaltik10
environment:
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
PGDATA: /opt/odoo/pgdata
odoo8c7: odoo8c7:
init: true init: true
@ -27,35 +15,11 @@ services:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.8.centos7 dockerfile: Dockerfile.8.centos7
image: registry.yaltik.net/odoo:yaltik8c7 image: registry.yaltik.net/odoo:yaltik8c7
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 720
LIMIT_TIME_REAL: 1440
ADMIN_PASSWORD: somethingToChange
LIST_DB: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
odoo: odoo:
init: true init: true
build: ./odoo build: ./odoo
image: registry.yaltik.net/odoo:yaltik8 image: registry.yaltik.net/odoo:yaltik8
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 720
LIMIT_TIME_REAL: 1440
ADMIN_PASSWORD: somethingToChange
LIST_DB: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
DEV: 0
PROXY_MODE: "True"
openerp60: openerp60:
init: true init: true
@ -63,12 +27,6 @@ services:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.60 dockerfile: Dockerfile.60
image: registry.yaltik.net/openerp:yaltik60 image: registry.yaltik.net/openerp:yaltik60
environment:
XMLRPC_PORT: 8069
NETRPC_PORT: 8070
ADMIN_PASSWORD: admin
POSTGRES_USER: openerp
POSTGRES_PASSWORD: somethingToChange
openerpweb60: openerpweb60:
init: true init: true
@ -76,12 +34,6 @@ services:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.web.60 dockerfile: Dockerfile.web.60
image: registry.yaltik.net/openerpweb:yaltik60 image: registry.yaltik.net/openerpweb:yaltik60
environment:
WEB_PORT: 8080
OPENERP_HOST: openerp60
OPENERP_PORT: 8069
OPENERP_PROTOCOL: http
PROXY_MODE: "False"
odoo9: odoo9:
init: true init: true
@ -89,17 +41,6 @@ services:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.9 dockerfile: Dockerfile.9
image: registry.yaltik.net/odoo:yaltik9 image: registry.yaltik.net/odoo:yaltik9
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 720
LIMIT_TIME_REAL: 1440
ADMIN_PASSWORD: somethingToChange
LIST_DB: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
odoobase10: odoobase10:
init: true init: true
@ -107,17 +48,6 @@ services:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.10 dockerfile: Dockerfile.10
image: registry.yaltik.net/odoo:yaltikbase10 image: registry.yaltik.net/odoo:yaltikbase10
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 720
LIMIT_TIME_REAL: 1440
ADMIN_PASSWORD: somethingToChange
LIST_DB: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
odoo10: odoo10:
init: true init: true
@ -125,17 +55,6 @@ services:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.ext.10 dockerfile: Dockerfile.ext.10
image: registry.yaltik.net/odoo:yaltik10 image: registry.yaltik.net/odoo:yaltik10
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 720
LIMIT_TIME_REAL: 1440
ADMIN_PASSWORD: somethingToChange
LIST_DB: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
odoobase10c7: odoobase10c7:
init: true init: true
@ -143,17 +62,6 @@ services:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.10.centos7 dockerfile: Dockerfile.10.centos7
image: registry.yaltik.net/odoo:yaltikbase10c7 image: registry.yaltik.net/odoo:yaltikbase10c7
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 720
LIMIT_TIME_REAL: 1440
ADMIN_PASSWORD: somethingToChange
LIST_DB: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
odoo10c7: odoo10c7:
init: true init: true
@ -161,17 +69,6 @@ services:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.ext.10.centos7 dockerfile: Dockerfile.ext.10.centos7
image: registry.yaltik.net/odoo:yaltik10c7 image: registry.yaltik.net/odoo:yaltik10c7
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 720
LIMIT_TIME_REAL: 1440
ADMIN_PASSWORD: somethingToChange
LIST_DB: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
odoo11: odoo11:
init: true init: true
@ -179,17 +76,6 @@ services:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.11 dockerfile: Dockerfile.11
image: registry.yaltik.net/odoo:yaltik11 image: registry.yaltik.net/odoo:yaltik11
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 720
LIMIT_TIME_REAL: 1440
ADMIN_PASSWORD: somethingToChange
LIST_DB: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
odoobase12: odoobase12:
init: true init: true
@ -197,17 +83,6 @@ services:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.12 dockerfile: Dockerfile.12
image: registry.yaltik.net/odoo:yaltikbase12 image: registry.yaltik.net/odoo:yaltikbase12
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 720
LIMIT_TIME_REAL: 1440
ADMIN_PASSWORD: somethingToChange
LIST_DB: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
odoo12: odoo12:
init: true init: true
@ -215,17 +90,6 @@ services:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.ext.12 dockerfile: Dockerfile.ext.12
image: registry.yaltik.net/odoo:yaltik12 image: registry.yaltik.net/odoo:yaltik12
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 720
LIMIT_TIME_REAL: 1440
ADMIN_PASSWORD: somethingToChange
LIST_DB: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
flectra: flectra:
init: true init: true
@ -233,17 +97,6 @@ services:
context: ./flectra context: ./flectra
dockerfile: Dockerfile dockerfile: Dockerfile
image: registry.yaltik.net/flectra:yaltik1pg96 image: registry.yaltik.net/flectra:yaltik1pg96
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 720
LIMIT_TIME_REAL: 1440
ADMIN_PASSWORD: somethingToChange
LIST_DB: "False"
POSTGRES_USER: flectra
POSTGRES_PASSWORD: somethingToChange
flectrapg10: flectrapg10:
init: true init: true
@ -251,17 +104,6 @@ services:
context: ./flectra context: ./flectra
dockerfile: Dockerfile.pg10 dockerfile: Dockerfile.pg10
image: registry.yaltik.net/flectra:yaltik1pg10 image: registry.yaltik.net/flectra:yaltik1pg10
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 720
LIMIT_TIME_REAL: 1440
ADMIN_PASSWORD: somethingToChange
LIST_DB: "False"
POSTGRES_USER: flectra
POSTGRES_PASSWORD: somethingToChange
odoocmd: odoocmd:
build: build:
@ -272,7 +114,3 @@ services:
build: build:
context: ./backups context: ./backups
image: registry.yaltik.net/odoobackup:yaltik image: registry.yaltik.net/odoobackup:yaltik
environment:
ODOO_HOST: odoo
ODOO_ADMIN_PASSWORD: admin
ODOO_DATABASES: base

View File

@ -2,197 +2,61 @@ version: '2.2'
services: services:
nginx: nginx:
init: true
build: build:
context: ./nginx context: ./nginx
dockerfile: Dockerfile.dev dockerfile: Dockerfile.dev
image: registry.yaltik.net/nginx:odoodev image: registry.yaltik.net/nginx:odoodev
environment:
PORT: 80
NGINX_HOST: localhost 127.0.0.1
NGINX_PORT: 80
NGINX_SSL_PORT: 443
ODOO_SERVICE: odoo
ODOO_SERVER_NAMES: localodoo odoo ocb
odoodev: odoodev:
build: build:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.dev dockerfile: Dockerfile.dev
image: registry.yaltik.net/odoodev:yaltik8 image: registry.yaltik.net/odoodev:yaltik8
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
ADMIN_PASSWORD: dev
LIST_DB: "True"
DB_MAXCONN: 20
WORKERS: 2
LIMIT_TIME_CPU: 3000
LIMIT_TIME_REAL: 6000
DEV: 1
PROXY_MODE: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
odoo8c7dev: odoo8c7dev:
build: build:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.8.centos7.dev dockerfile: Dockerfile.8.centos7.dev
image: registry.yaltik.net/odoodev:yaltik8c7 image: registry.yaltik.net/odoodev:yaltik8c7
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
ADMIN_PASSWORD: dev
LIST_DB: "True"
DB_MAXCONN: 20
WORKERS: 2
LIMIT_TIME_CPU: 3000
LIMIT_TIME_REAL: 6000
DEV: 1
PROXY_MODE: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
odoodev10: odoodev10:
build: build:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.10.dev dockerfile: Dockerfile.10.dev
image: registry.yaltik.net/odoodev:yaltik10 image: registry.yaltik.net/odoodev:yaltik10
environment:
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
DEV: 1
CODE_FOLDER: code
ADMIN_PASSWORD: dev
LIST_DB: "True"
DB_MAXCONN: 20
WORKERS: 2
LIMIT_TIME_CPU: 3000
LIMIT_TIME_REAL: 6000
LIMIT_MEMORY_SOFT: 7000000000
LIMIT_MEMORY_HARD: 16000000000
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
odoodev10c7: odoodev10c7:
build: build:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.10.centos7.dev dockerfile: Dockerfile.10.centos7.dev
image: registry.yaltik.net/odoodev:yaltik10c7 image: registry.yaltik.net/odoodev:yaltik10c7
environment:
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
DEV: 1
CODE_FOLDER: code
ADMIN_PASSWORD: dev
LIST_DB: "True"
DB_MAXCONN: 20
WORKERS: 2
LIMIT_TIME_CPU: 3000
LIMIT_TIME_REAL: 6000
LIMIT_MEMORY_SOFT: 7000000000
LIMIT_MEMORY_HARD: 16000000000
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
odoodev12: odoodev12:
build: build:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.12.dev dockerfile: Dockerfile.12.dev
image: registry.yaltik.net/odoodev:yaltik12 image: registry.yaltik.net/odoodev:yaltik12
environment:
DEV: 1
CODE_FOLDER: code
ADMIN_PASSWORD: dev
LIST_DB: "True"
DB_MAXCONN: 20
WORKERS: 2
LIMIT_TIME_CPU: 3000
LIMIT_TIME_REAL: 6000
LIMIT_MEMORY_SOFT: 7000000000
LIMIT_MEMORY_HARD: 16000000000
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
openupgrade9: openupgrade9:
init: true
build: build:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.openupgrade.9 dockerfile: Dockerfile.openupgrade.9
image: registry.yaltik.net/odoodev:yaltikopenupgrade9 image: registry.yaltik.net/odoodev:yaltikopenupgrade9
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 3000
LIMIT_TIME_REAL: 6000
ADMIN_PASSWORD: dev
LIST_DB: "True"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
openupgrade10: openupgrade10:
init: true
build: build:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.openupgrade.10 dockerfile: Dockerfile.openupgrade.10
image: registry.yaltik.net/odoodev:yaltikopenupgrade10 image: registry.yaltik.net/odoodev:yaltikopenupgrade10
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 3000
LIMIT_TIME_REAL: 6000
ADMIN_PASSWORD: dev
LIST_DB: "True"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
flectradev: flectradev:
build: build:
context: ./flectra context: ./flectra
dockerfile: Dockerfile.dev dockerfile: Dockerfile.dev
image: registry.yaltik.net/flectradev:yaltik1pg96 image: registry.yaltik.net/flectradev:yaltik1pg96
environment:
DEV: 1
CODE_FOLDER: code
ADMIN_PASSWORD: dev
LIST_DB: "True"
DB_MAXCONN: 20
WORKERS: 2
LIMIT_TIME_CPU: 3000
LIMIT_TIME_REAL: 6000
LIMIT_MEMORY_SOFT: 7000000000
LIMIT_MEMORY_HARD: 16000000000
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
POSTGRES_USER: flectra
POSTGRES_PASSWORD: somethingToChange
flectradevpg10: flectradevpg10:
init: true
build: build:
context: ./flectra context: ./flectra
dockerfile: Dockerfile.dev.pg10 dockerfile: Dockerfile.dev.pg10
image: registry.yaltik.net/flectradev:yaltik1pg10 image: registry.yaltik.net/flectradev:yaltik1pg10
environment:
DEV: 1
CODE_FOLDER: code
ADMIN_PASSWORD: dev
LIST_DB: "True"
DB_MAXCONN: 20
WORKERS: 2
LIMIT_TIME_CPU: 3000
LIMIT_TIME_REAL: 6000
LIMIT_MEMORY_SOFT: 7000000000
LIMIT_MEMORY_HARD: 16000000000
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
POSTGRES_USER: flectra
POSTGRES_PASSWORD: somethingToChange

View File

@ -1,59 +1,17 @@
version: '2.2' version: '2.2'
services: services:
golemv2: golemv2:
init: true
build: . build: .
image: registry.yaltik.net/golem:yaltikv2 image: registry.yaltik.net/golem:yaltikv2
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 720
LIMIT_TIME_REAL: 1440
ADMIN_PASSWORD: somethingToChange
LIST_DB: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
DEV: 0
PROXY_MODE: "True"
golemmaster: golemmaster:
build: build:
context: . context: .
dockerfile: Dockerfile.master dockerfile: Dockerfile.master
image: registry.yaltik.net/golem:yaltikmaster image: registry.yaltik.net/golem:yaltikmaster
init: true
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 720
LIMIT_TIME_REAL: 1440
ADMIN_PASSWORD: somethingToChange
LIST_DB: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
DEV: 0
PROXY_MODE: "True"
golem: golem:
build: build:
context: . context: .
dockerfile: Dockerfile.v3 dockerfile: Dockerfile.v3
image: registry.yaltik.net/golem:yaltikstable image: registry.yaltik.net/golem:yaltikstable
init: true
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 720
LIMIT_TIME_REAL: 1440
ADMIN_PASSWORD: somethingToChange
LIST_DB: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
DEV: 0
PROXY_MODE: "True"

View File

@ -4,59 +4,15 @@ services:
golemdev2: golemdev2:
build: . build: .
image: registry.yaltik.net/golem:yaltikv2dev image: registry.yaltik.net/golem:yaltikv2dev
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
ADMIN_PASSWORD: dev
LIST_DB: "True"
DB_MAXCONN: 20
WORKERS: 2
LIMIT_TIME_CPU: 3000
LIMIT_TIME_REAL: 6000
DEV: 1
PROXY_MODE: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
golemdev3: golemdev3:
build: build:
context: . context: .
dockerfile: Dockerfile.v3.dev dockerfile: Dockerfile.v3.dev
image: registry.yaltik.net/golem:yaltikv3dev image: registry.yaltik.net/golem:yaltikv3dev
environment:
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
DEV: 1
CODE_FOLDER: code
ADMIN_PASSWORD: dev
LIST_DB: "True"
DB_MAXCONN: 20
WORKERS: 2
LIMIT_TIME_CPU: 3000
LIMIT_TIME_REAL: 6000
LIMIT_MEMORY_SOFT: 7000000000
LIMIT_MEMORY_HARD: 16000000000
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
golemdevmaster: golemdevmaster:
build: build:
context: . context: .
dockerfile: Dockerfile.master.dev dockerfile: Dockerfile.master.dev
image: registry.yaltik.net/golem:yaltikdev image: registry.yaltik.net/golem:yaltikdev
environment:
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
DEV: 1
CODE_FOLDER: code
ADMIN_PASSWORD: dev
LIST_DB: "True"
DB_MAXCONN: 20
WORKERS: 2
LIMIT_TIME_CPU: 3000
LIMIT_TIME_REAL: 6000
LIMIT_MEMORY_SOFT: 7000000000
LIMIT_MEMORY_HARD: 16000000000
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange

View File

@ -2,6 +2,7 @@ FROM registry.yaltik.net/nginx:yaltik
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com> MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
# Default variables # Default variables
ENV ODOO_SERVICE odoo
ENV ODOO_SERVER_NAMES odoo ENV ODOO_SERVER_NAMES odoo
# Copy templates and usefull files # Copy templates and usefull files

View File

@ -2,6 +2,7 @@ FROM registry.yaltik.net/nginx:yaltik
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com> MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
# Default variables # Default variables
ENV ODOO_SERVICE odoo
ENV ODOO_SERVER_NAMES odoo ENV ODOO_SERVER_NAMES odoo
# Copy templates and usefull files # Copy templates and usefull files

View File

@ -7,7 +7,7 @@ upstream ${SERVICE}longpoll {
} }
server { server {
listen ${PORT}; listen ${NGINX_PORT};
server_name ${SERVER_NAMES}; server_name ${SERVER_NAMES};
client_max_body_size 500M; client_max_body_size 500M;
keepalive_timeout 120s; keepalive_timeout 120s;

View File

@ -30,16 +30,16 @@ dbfilter = ${DB_FILTER}
db_name = ${DB_NAME} db_name = ${DB_NAME}
db_host = ${DB_HOST:=postgres} db_host = ${DB_HOST:=postgres}
db_port = ${DB_PORT:=5432} db_port = ${DB_PORT:=5432}
db_user = $POSTGRES_USER db_user = ${POSTGRES_USER:=odoo}
db_password = $POSTGRES_PASSWORD db_password = $POSTGRES_PASSWORD
db_maxconn = ${DB_MAXCONN:=20} db_maxconn = ${DB_MAXCONN:=20}
list_db = ${LIST_DB:=True} list_db = ${LIST_DB:=True}
xmlrpc_port = ${XMLRPC_PORT:=8069} xmlrpc_port = ${XMLRPC_PORT:=8069}
longpolling_port = ${LONGPOLLING_PORT:=8072} longpolling_port = ${LONGPOLLING_PORT:=8072}
proxy_mode = ${PROXY_MODE:=True} proxy_mode = ${PROXY_MODE:=True}
workers = ${WORKERS:=1} workers = ${WORKERS:=2}
limit_time_cpu = ${LIMIT_TIME_CPU:=120} limit_time_cpu = ${LIMIT_TIME_CPU:=120}
limit_time_real = ${LIMIT_TIME_REAL:=240} limit_time_real = ${LIMIT_TIME_REAL:=240}
limit_memory_soft = ${LIMIT_MEMORY_SOFT:=1342177280} limit_memory_soft = ${LIMIT_MEMORY_SOFT:=2684354560}
limit_memory_hard = ${LIMIT_MEMORY_HARD:=3221225472} limit_memory_hard = ${LIMIT_MEMORY_HARD:=6442450944}
admin_passwd = ${ADMIN_PASSWORD:=admin}" > $CONF admin_passwd = ${ADMIN_PASSWORD:=admin}" > $CONF

View File

@ -4,12 +4,6 @@ services:
init: true init: true
build: ./nginx build: ./nginx
image: registry.yaltik.net/nginx:odoo image: registry.yaltik.net/nginx:odoo
environment:
NGINX_HOST: localhost 127.0.0.1
NGINX_PORT: 80
NGINX_SSL_PORT: 443
ODOO_SERVICE: odoo
ODOO_SERVER_NAMES: localodoo odoo ocb
ports: ports:
- "80:80" - "80:80"
- "443:443" - "443:443"

View File

@ -2,79 +2,25 @@ version: '2.2'
services: services:
odoopy3o10: odoopy3o10:
init: true
build: build:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.py3o.10 dockerfile: Dockerfile.py3o.10
image: registry.yaltik.net/odoo:yaltikpy3o10 image: registry.yaltik.net/odoo:yaltikpy3o10
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 720
LIMIT_TIME_REAL: 1440
ADMIN_PASSWORD: somethingToChange
LIST_DB: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
odoodevpy3o10: odoodevpy3o10:
build: build:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.py3o.10.dev dockerfile: Dockerfile.py3o.10.dev
image: registry.yaltik.net/odoodev:yaltikpy3o10 image: registry.yaltik.net/odoodev:yaltikpy3o10
environment:
DEV: 1
CODE_FOLDER: code
ADMIN_PASSWORD: dev
LIST_DB: "True"
DB_MAXCONN: 20
WORKERS: 2
LIMIT_TIME_CPU: 3000
LIMIT_TIME_REAL: 6000
LIMIT_MEMORY_SOFT: 7000000000
LIMIT_MEMORY_HARD: 16000000000
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
odoopy3o10c7: odoopy3o10c7:
init: true
build: build:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.py3o.10.centos7 dockerfile: Dockerfile.py3o.10.centos7
image: registry.yaltik.net/odoo:yaltikpy3o10c7 image: registry.yaltik.net/odoo:yaltikpy3o10c7
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
WORKERS: 2
LIMIT_TIME_CPU: 720
LIMIT_TIME_REAL: 1440
ADMIN_PASSWORD: somethingToChange
LIST_DB: "False"
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange
odoodevpy3o10c7: odoodevpy3o10c7:
build: build:
context: ./odoo context: ./odoo
dockerfile: Dockerfile.py3o.10.centos7.dev dockerfile: Dockerfile.py3o.10.centos7.dev
image: registry.yaltik.net/odoodev:yaltikpy3o10c7 image: registry.yaltik.net/odoodev:yaltikpy3o10c7
environment:
DEV: 1
CODE_FOLDER: code
ADMIN_PASSWORD: dev
XMLRPC_PORT: 8069
LONGPOLLING_PORT: 8072
LIST_DB: "True"
DB_MAXCONN: 20
WORKERS: 2
LIMIT_TIME_CPU: 3000
LIMIT_TIME_REAL: 6000
LIMIT_MEMORY_SOFT: 7000000000
LIMIT_MEMORY_HARD: 16000000000
POSTGRES_USER: odoo
POSTGRES_PASSWORD: somethingToChange