Switched to MySQL
This commit is contained in:
@@ -9,7 +9,7 @@ services:
|
|||||||
- 2606:4700:4700::1111
|
- 2606:4700:4700::1111
|
||||||
- 2606:4700:4700::1001
|
- 2606:4700:4700::1001
|
||||||
environment:
|
environment:
|
||||||
JOOMLA_DB_HOST: postgres:5432
|
JOOMLA_DB_HOST: mysql
|
||||||
JOOMLA_DB_NAME: joomla_db
|
JOOMLA_DB_NAME: joomla_db
|
||||||
JOOMLA_DB_USER: joomla_user
|
JOOMLA_DB_USER: joomla_user
|
||||||
JOOMLA_DB_PASSWORD: ${DB_USER_PASS}
|
JOOMLA_DB_PASSWORD: ${DB_USER_PASS}
|
||||||
@@ -31,23 +31,24 @@ services:
|
|||||||
traefik.port: "80"
|
traefik.port: "80"
|
||||||
### End Joomla Segment
|
### End Joomla Segment
|
||||||
links:
|
links:
|
||||||
- postgres
|
- mysql
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system
|
- /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system
|
||||||
- /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system
|
- /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system
|
||||||
- /Rancher/${DATA_DIR}/Files:/var/www/html # Joomla Public Files
|
- /Rancher/${DATA_DIR}/Files:/var/www/html # Joomla Public Files
|
||||||
postgres:
|
mysql:
|
||||||
image: postgres:latest
|
image: mysql:5
|
||||||
dns: # Using Cloudflare DNS
|
dns: # Using Cloudflare DNS
|
||||||
- 1.1.1.1
|
- 1.1.1.1
|
||||||
- 1.0.0.1
|
- 1.0.0.1
|
||||||
- 2606:4700:4700::1111
|
- 2606:4700:4700::1111
|
||||||
- 2606:4700:4700::1001
|
- 2606:4700:4700::1001
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: joomla_db
|
MYSQL_DATABASE: joomla_db
|
||||||
POSTGRES_USER: joomla_user
|
MYSQL_ROOT_PASSWORD:
|
||||||
POSTGRES_PASSWORD: ${DB_USER_PASS}
|
MYSQL_USER: joomla_user
|
||||||
|
MYSQL_PASSWORD: ${DB_USER_PASS}
|
||||||
labels:
|
labels:
|
||||||
io.rancher.container.pull_image: always
|
io.rancher.container.pull_image: always
|
||||||
{{- if .Values.HOST_LABEL}}
|
{{- if .Values.HOST_LABEL}}
|
||||||
@@ -58,4 +59,4 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system
|
- /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system
|
||||||
- /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system
|
- /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system
|
||||||
- /Rancher/${DATA_DIR}/Database:/var/lib/postgresql/data # PostgreSQL data
|
- /Rancher/${DATA_DIR}/Database:/var/lib/mysql # MySQL data
|
||||||
|
|||||||
Reference in New Issue
Block a user