updated the docker compose file
This commit is contained in:
parent
f1e74c60fb
commit
f8010a6b41
@ -6,11 +6,6 @@ version: '3.8'
|
||||
# For Production
|
||||
# docker-compose up -d
|
||||
|
||||
|
||||
volumes:
|
||||
joomla-db:
|
||||
joomla:
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
@ -18,7 +13,7 @@ networks:
|
||||
|
||||
services:
|
||||
mariadb-joomla:
|
||||
image: mariadb:10.7.1 # https://hub.docker.com/_/mariadb
|
||||
image: mariadb:11.2.2 # https://hub.docker.com/_/mariadb
|
||||
restart: always
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||
@ -26,12 +21,12 @@ services:
|
||||
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
||||
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
||||
volumes:
|
||||
- joomla-db:/var/lib/mysql
|
||||
- ./data/joomla-db:/var/lib/mysql
|
||||
- "/etc/timezone:/etc/timezone:ro"
|
||||
- "/etc/localtime:/etc/localtime:ro"
|
||||
|
||||
joomla:
|
||||
image: joomla:4.3.2 # https://hub.docker.com/_/joomla
|
||||
image: joomla:4.4.1 # https://hub.docker.com/_/joomla
|
||||
restart: always
|
||||
environment:
|
||||
JOOMLA_DB_HOST: mariadb-joomla
|
||||
@ -39,7 +34,7 @@ services:
|
||||
JOOMLA_DB_PASSWORD: ${MYSQL_PASSWORD}
|
||||
JOOMLA_DB_NAME: ${MYSQL_DATABASE}
|
||||
volumes:
|
||||
- ./html:/var/www/html
|
||||
- ./data/html:/var/www/html
|
||||
- ./php/php.ini:/usr/local/etc/php/php.ini
|
||||
- "/etc/timezone:/etc/timezone:ro"
|
||||
- "/etc/localtime:/etc/localtime:ro"
|
||||
|
Reference in New Issue
Block a user