mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
made a lot of changes to accomodate running the same app for differnt projects.
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
################################################################################
|
||||
# Joomla
|
||||
# Update the .env file
|
||||
#
|
||||
# Version 1
|
||||
################################################################################
|
||||
version: '3.3'
|
||||
|
||||
volumes:
|
||||
mariadb:
|
||||
joomla:
|
||||
|
||||
networks:
|
||||
admin_web:
|
||||
external:
|
||||
name: admin_web
|
||||
|
||||
services:
|
||||
|
||||
mariadb:
|
||||
image: mariadb:${LAMPDB_V}
|
||||
restart: always
|
||||
volumes:
|
||||
- mariadb:/var/lib/mysql
|
||||
networks:
|
||||
- admin_web
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||
MYSQL_USER: joomla
|
||||
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
||||
MYSQL_DATABASE: joomla
|
||||
|
||||
memcached:
|
||||
image: memcached:${MEM_V}
|
||||
restart: always
|
||||
networks:
|
||||
- admin_web
|
||||
|
||||
lamp:
|
||||
image: nick/lamp
|
||||
restart: always
|
||||
links:
|
||||
- mariadb
|
||||
networks:
|
||||
- admin_web
|
||||
volumes:
|
||||
- joomla:/var/www/html
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.${PREFIX}_lamp.rule=Host(`${DOMAIN_NAME}`)"
|
||||
- "traefik.http.routers.${PREFIX}_lamp.entrypoints=websecure"
|
||||
- "traefik.http.routers.${PREFIX}_lamp.tls=true"
|
||||
- "traefik.http.services.${PREFIX}_lamp.loadbalancer.server.port=80"
|
||||
Reference in New Issue
Block a user