mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
Cleaned up all compose files
cleaned up all the files. they should now all work for multiple projects.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
################################################################################
|
||||
# phpmyadmin
|
||||
# make sure you use the $PREFIX from .env for project_name
|
||||
# docker-compose -p project_name up -d
|
||||
#
|
||||
# Version 1
|
||||
################################################################################
|
||||
version: '2'
|
||||
|
||||
networks:
|
||||
traefik_web:
|
||||
external:
|
||||
name: ${NETWORK_NAME}
|
||||
|
||||
services:
|
||||
|
||||
# It's only exposed if someone knows the ip
|
||||
phpmyadmin:
|
||||
#https://hub.docker.com/r/phpmyadmin/phpmyadmin/tags
|
||||
image: phpmyadmin/phpmyadmin:${PHPMYADMIN_V}
|
||||
environment:
|
||||
- PMA_ARBITRARY=1
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- ${NETWORK_NAME}
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.${PREFIX}_phpmyadmin.rule=Host(`${DOMAIN_NAME}`)"
|
||||
- "traefik.http.routers.${PREFIX}_phpmyadmin.entrypoints=websecure"
|
||||
- "traefik.http.routers.${PREFIX}_phpmyadmin.tls=true"
|
||||
- "traefik.http.services.${PREFIX}_phpmyadmin.loadbalancer.server.port=80"
|
||||
@@ -0,0 +1,9 @@
|
||||
# Domains & Project
|
||||
PREFIX=p1
|
||||
DOMAIN_NAME=phpmyadmin.nickyeoman.com
|
||||
|
||||
# Software versions
|
||||
PHPMYADMIN_V=5.0
|
||||
|
||||
# Network
|
||||
NETWORK_NAME=traefik_web
|
||||
Reference in New Issue
Block a user