2023-05-20 03:30:39 +00:00
|
|
|
version: '3.8'
|
|
|
|
|
2023-06-08 07:46:50 +00:00
|
|
|
# For Staging
|
|
|
|
# docker-compose -f docker-compose.yml -f docker-compose.staging.yml --env-file .env.staging up -d
|
|
|
|
# docker-compose -f docker-compose.yml -f docker-compose.staging.yml --env-file .env.staging down
|
|
|
|
#
|
|
|
|
# For Production
|
|
|
|
# docker-compose up -d
|
|
|
|
# docker-compose down
|
|
|
|
|
2023-05-20 03:30:39 +00:00
|
|
|
volumes:
|
2023-05-20 03:45:06 +00:00
|
|
|
joomla-db:
|
2023-05-20 03:30:39 +00:00
|
|
|
joomla:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
external:
|
|
|
|
name: ${NETWORKNAME}
|
|
|
|
|
|
|
|
services:
|
2023-06-08 07:46:50 +00:00
|
|
|
mariadb-joomla:
|
2023-05-20 03:30:39 +00:00
|
|
|
image: mariadb:10.7.1 # https://hub.docker.com/_/mariadb
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
2023-05-20 03:45:06 +00:00
|
|
|
MYSQL_USER: ${MYSQL_USER}
|
|
|
|
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
|
|
|
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
2023-05-20 03:30:39 +00:00
|
|
|
volumes:
|
2023-05-20 03:45:06 +00:00
|
|
|
- joomla-db:/var/lib/mysql
|
2023-06-07 21:16:31 +00:00
|
|
|
- "/etc/timezone:/etc/timezone:ro"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
2023-05-20 03:30:39 +00:00
|
|
|
|
|
|
|
joomla:
|
2023-06-01 15:20:10 +00:00
|
|
|
image: joomla:4.3.2 # https://hub.docker.com/_/joomla
|
2023-05-20 03:30:39 +00:00
|
|
|
restart: always
|
|
|
|
environment:
|
2023-06-08 07:46:50 +00:00
|
|
|
JOOMLA_DB_HOST: mariadb-joomla
|
2023-05-20 03:30:39 +00:00
|
|
|
JOOMLA_DB_USER: ${MYSQL_USER}
|
|
|
|
JOOMLA_DB_PASSWORD: ${MYSQL_PASSWORD}
|
|
|
|
JOOMLA_DB_NAME: ${MYSQL_DATABASE}
|
|
|
|
volumes:
|
2023-06-10 02:04:05 +00:00
|
|
|
- joomla:/var/www/html
|
2023-05-31 23:57:49 +00:00
|
|
|
- ./php/php.ini:/usr/local/etc/php/php.ini
|
2023-06-07 21:16:31 +00:00
|
|
|
- "/etc/timezone:/etc/timezone:ro"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
2023-05-20 03:30:39 +00:00
|
|
|
|