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
|
||||
|
||||
COPY Themes/verdnatura /var/www/html/web/Themes
|
||||
COPY themes/verdnatura /var/www/html/web/Themes
|
||||
|
||||
|
|
@ -50,8 +50,8 @@ spec:
|
|||
app: mrbs
|
||||
spec:
|
||||
containers:
|
||||
- image: registry.verdnatura.es/mbrs:1.11.1-vn1
|
||||
## name: main ???
|
||||
- image: registry.verdnatura.es/mrbs:1.11.2-vn1
|
||||
name: main
|
||||
ports:
|
||||
- containerPort: 80
|
||||
resources:
|
||||
|
@ -62,10 +62,12 @@ spec:
|
|||
mountPath: /var/www/html/web/config.inc.php
|
||||
subPath: config.inc.php
|
||||
restartPolicy: Always
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
volumes:
|
||||
- name: secret
|
||||
secret:
|
||||
secretName: mbrs.config
|
||||
secretName: mrbs.config
|
||||
defaultMode: 420
|
||||
---
|
||||
apiVersion: v1
|
||||
|
@ -87,7 +89,7 @@ kind: Deployment
|
|||
metadata:
|
||||
name: mrbs.db
|
||||
labels:
|
||||
app: mrbs-db
|
||||
app: mrbs
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
|
@ -98,11 +100,10 @@ spec:
|
|||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mrbs
|
||||
io.kompose.service: mrbs-db
|
||||
spec:
|
||||
containers:
|
||||
- image: mysql:8.0.33
|
||||
- image: mariadb:10.11.4
|
||||
name: mrbs-db
|
||||
args:
|
||||
- --transaction-isolation=READ-COMMITTED
|
||||
|
@ -118,6 +119,11 @@ spec:
|
|||
secretKeyRef:
|
||||
name: mrbs.env
|
||||
key: MYSQL_PASSWORD
|
||||
- name: MYSQL_ROOT_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: mrbs.env
|
||||
key: MYSQL_ROOT_PASSWORD
|
||||
ports:
|
||||
- containerPort: 3306
|
||||
resources:
|
||||
|
@ -125,25 +131,33 @@ spec:
|
|||
memory: 500Mi
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/mysql
|
||||
name: mrbs-db
|
||||
name: db
|
||||
- mountPath: /etc/localtime
|
||||
name: localtime
|
||||
readOnly: true
|
||||
restartPolicy: Always
|
||||
volumes:
|
||||
- name: db
|
||||
persistentVolumeClaim:
|
||||
claimName: mrbs.db
|
||||
- name: localtime
|
||||
hostPath:
|
||||
path: /etc/localtime
|
||||
type: File
|
||||
readOnly: true
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: mrbs.db
|
||||
labels:
|
||||
app: mrdb-db
|
||||
app: mrdb
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 4Gi
|
||||
storage: 2Gi
|
||||
storageClassName: csi-rbd-ssd-sc
|
||||
volumeMode: Filesystem
|
||||
---
|
||||
|
@ -159,5 +173,5 @@ spec:
|
|||
volumeMode: Filesystem
|
||||
resources:
|
||||
requests:
|
||||
storage: 4Gi
|
||||
storage: 500Mi
|
||||
storageClassName: csi-rbd-ssd-sc
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Loading…
Reference in New Issue