This repository has been archived on 2024-08-09. You can view files and clone it, but cannot push or open issues or pull requests.
joomla/docker-compose.yml

48 lines
1.2 KiB
YAML
Raw Normal View History

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:
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}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
2023-05-20 03:30:39 +00:00
volumes:
- joomla-db:/var/lib/mysql
- "/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
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
2023-05-20 03:30:39 +00:00