added joomla to the cookbook

This commit is contained in:
2020-04-05 01:02:06 -07:00
parent 990dd9adde
commit 52f1111e9f
2 changed files with 50 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
---
version: '3.3'
# Update the .env file
# make sure you use the $PREFIX from .env for project_name
# docker-compose -p project_name up -d
volumes:
mariadb:
joomla:
networks:
traefik_web:
external:
name: traefik_web
services:
mariadb:
image: mariadb:10.4.11
restart: always
volumes:
- mariadb:/var/lib/mysql
networks:
- traefik_web
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_USER: joomla
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: joomla
joomla:
image: joomla:3.9.16-apache
restart: always
links:
- ${PREFIX}_mariadb_1
networks:
- traefik_web
volumes:
- joomla:/var/www/html
labels:
- "traefik.enable=true"
- "traefik.http.routers.${PREFIX}_joomla.rule=Host(`${DOMAIN_NAME}`)"
- "traefik.http.routers.${PREFIX}_joomla.entrypoints=websecure"
- "traefik.http.routers.${PREFIX}_joomla.tls=true"
- "traefik.http.services.${PREFIX}_joomla.loadbalancer.server.port=80"
+5
View File
@@ -0,0 +1,5 @@
# Rename this file to .env
DOMAIN_NAME=joomla.nickyeoman.com
PREFIX=project_name
MYSQL_PASSWORD=MyNotSecurePassword1234
MYSQL_ROOT_PASSWORD=AlsoNotSecure