refs #5975 Production setup changes
This commit is contained in:
parent
ecaed0cc79
commit
6aeb48b958
|
@ -1,31 +0,0 @@
|
||||||
version: "3.1"
|
|
||||||
services:
|
|
||||||
web:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
container_name: mrbs-web
|
|
||||||
ports:
|
|
||||||
- "8080:80"
|
|
||||||
|
|
||||||
links:
|
|
||||||
- db
|
|
||||||
networks:
|
|
||||||
- default
|
|
||||||
db:
|
|
||||||
image: mysql:8.0.33
|
|
||||||
container_name: mrbs-db
|
|
||||||
ports:
|
|
||||||
- "3306:3306"
|
|
||||||
command: --default-authentication-plugin=mysql_native_password
|
|
||||||
environment:
|
|
||||||
MYSQL_DATABASE: mrbs
|
|
||||||
MYSQL_USER: mrbs
|
|
||||||
MYSQL_PASSWORD: dhFtyr6%3jfifjRL.F987?
|
|
||||||
MYSQL_ROOT_PASSWORD: 3TTEKrPXspMAvHp
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- ./tables.my.sql:/docker-entrypoint-initdb.d/010-tables.sql
|
|
||||||
- ./db:/var/lib/mysql
|
|
||||||
networks:
|
|
||||||
- default
|
|
||||||
|
|
|
@ -1,58 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: mbrs.env
|
|
||||||
labels:
|
|
||||||
app: mbrs
|
|
||||||
type: Opaque
|
|
||||||
stringData:
|
|
||||||
MYSQL_PASSWORD: dhFtyr6%3jfifjRL.F987?
|
|
||||||
MYSQL_ROOT_PASSWORD: 3TTEKrPXspMAvHp
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: mbrs.config
|
|
||||||
labels:
|
|
||||||
app: mbrs
|
|
||||||
type: Opaque
|
|
||||||
stringData:
|
|
||||||
config.inc.php: |
|
|
||||||
<?php
|
|
||||||
|
|
||||||
$debug = true;
|
|
||||||
$timezone = "Europe/Madrid";
|
|
||||||
$mrbs_admin = "Your Administrator";
|
|
||||||
$mrbs_admin_email = "admin_email@your.org";
|
|
||||||
$mrbs_company_logo = "vernatura-logo.png";
|
|
||||||
$mrbs_company = "";
|
|
||||||
//$mrbs_company_url = "https://www.verdnatura.es/";
|
|
||||||
$weekstarts = 1;
|
|
||||||
|
|
||||||
$dbsys = "mysql";
|
|
||||||
$db_host = "mrbs-db";
|
|
||||||
$db_database = "mrbs";
|
|
||||||
$db_login = "mrbs";
|
|
||||||
$db_password = 'dhFtyr6%3jfifjRL.F987?';
|
|
||||||
$db_tbl_prefix = "mrbs_";
|
|
||||||
|
|
||||||
$theme = "verdnatura";
|
|
||||||
|
|
||||||
$auth["type"] = "ldap";
|
|
||||||
|
|
||||||
$ldap_host = "ldap://ldap.verdnatura.es";
|
|
||||||
$ldap_v3 = true;
|
|
||||||
$ldap_tls = false;
|
|
||||||
$ldap_base_dn = "dc=verdnatura,dc=es";
|
|
||||||
$ldap_user_attrib = "uid";
|
|
||||||
$ldap_dn_search_attrib = "uid";
|
|
||||||
$ldap_dn_search_dn = "cn=mrbs,ou=admins,dc=verdnatura,dc=es";
|
|
||||||
$ldap_get_user_email = false;
|
|
||||||
$ldap_email_attrib = 'mail';
|
|
||||||
$ldap_name_attrib = 'cn';
|
|
||||||
$ldap_admin_group_dn = 'cn=sysadmin,ou=dnGroups,dc=verdnatura,dc=es';
|
|
||||||
$ldap_group_member_attrib = 'memberof';
|
|
||||||
$ldap_debug = true;
|
|
||||||
$ldap_debug_attributes = true;
|
|
||||||
|
|
||||||
$auth['deny_public_access'] = true;
|
|
|
@ -27,6 +27,6 @@ RUN \
|
||||||
|
|
||||||
RUN docker-php-ext-install mysqli pdo pdo_mysql ldap intl gd
|
RUN docker-php-ext-install mysqli pdo pdo_mysql ldap intl gd
|
||||||
|
|
||||||
COPY Themes/verdnatura /var/www/html/web/Themes
|
COPY themes/verdnatura /var/www/html/web/Themes
|
||||||
|
|
||||||
|
|
|
@ -50,8 +50,8 @@ spec:
|
||||||
app: mrbs
|
app: mrbs
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: registry.verdnatura.es/mbrs:1.11.1-vn1
|
- image: registry.verdnatura.es/mrbs:1.11.2-vn1
|
||||||
## name: main ???
|
name: main
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
resources:
|
resources:
|
||||||
|
@ -62,10 +62,12 @@ spec:
|
||||||
mountPath: /var/www/html/web/config.inc.php
|
mountPath: /var/www/html/web/config.inc.php
|
||||||
subPath: config.inc.php
|
subPath: config.inc.php
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: regcred
|
||||||
volumes:
|
volumes:
|
||||||
- name: secret
|
- name: secret
|
||||||
secret:
|
secret:
|
||||||
secretName: mbrs.config
|
secretName: mrbs.config
|
||||||
defaultMode: 420
|
defaultMode: 420
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
@ -87,7 +89,7 @@ kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: mrbs.db
|
name: mrbs.db
|
||||||
labels:
|
labels:
|
||||||
app: mrbs-db
|
app: mrbs
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
|
@ -98,11 +100,10 @@ spec:
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: mrbs
|
|
||||||
io.kompose.service: mrbs-db
|
io.kompose.service: mrbs-db
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: mysql:8.0.33
|
- image: mariadb:10.11.4
|
||||||
name: mrbs-db
|
name: mrbs-db
|
||||||
args:
|
args:
|
||||||
- --transaction-isolation=READ-COMMITTED
|
- --transaction-isolation=READ-COMMITTED
|
||||||
|
@ -118,6 +119,11 @@ spec:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: mrbs.env
|
name: mrbs.env
|
||||||
key: MYSQL_PASSWORD
|
key: MYSQL_PASSWORD
|
||||||
|
- name: MYSQL_ROOT_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: mrbs.env
|
||||||
|
key: MYSQL_ROOT_PASSWORD
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3306
|
- containerPort: 3306
|
||||||
resources:
|
resources:
|
||||||
|
@ -125,25 +131,33 @@ spec:
|
||||||
memory: 500Mi
|
memory: 500Mi
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/lib/mysql
|
- mountPath: /var/lib/mysql
|
||||||
name: mrbs-db
|
name: db
|
||||||
|
- mountPath: /etc/localtime
|
||||||
|
name: localtime
|
||||||
|
readOnly: true
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
volumes:
|
volumes:
|
||||||
- name: db
|
- name: db
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mrbs.db
|
claimName: mrbs.db
|
||||||
|
- name: localtime
|
||||||
|
hostPath:
|
||||||
|
path: /etc/localtime
|
||||||
|
type: File
|
||||||
|
readOnly: true
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: mrbs.db
|
name: mrbs.db
|
||||||
labels:
|
labels:
|
||||||
app: mrdb-db
|
app: mrdb
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 4Gi
|
storage: 2Gi
|
||||||
storageClassName: csi-rbd-ssd-sc
|
storageClassName: csi-rbd-ssd-sc
|
||||||
volumeMode: Filesystem
|
volumeMode: Filesystem
|
||||||
---
|
---
|
||||||
|
@ -159,5 +173,5 @@ spec:
|
||||||
volumeMode: Filesystem
|
volumeMode: Filesystem
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 4Gi
|
storage: 500Mi
|
||||||
storageClassName: csi-rbd-ssd-sc
|
storageClassName: csi-rbd-ssd-sc
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Loading…
Reference in New Issue