Commit 26f03b29 authored by Michael Iseard's avatar Michael Iseard
Browse files

Remove unused ports and add adminer

parent ec180fdb
version: '3'
services:
adminer:
image: adminer
container_name: ${CONTAINER_PREFIX}-adminer
ports:
- ${ADMINER_PORT}:8080
links:
- mysql
networks:
- web
- default
labels:
- traefik.enable=true
- traefik.docker.network=web
- traefik.http.routers.adminer.rule=Host(`adminer.iseard.media`)
- traefik.http.routers.adminer.tls.certresolver=cloudflare
- traefik.http.routers.adminer.entrypoints=websecure
wordpress:
build: ./build
......@@ -10,7 +27,7 @@ services:
depends_on:
- mysql
volumes:
- ${WORDPRESS_DATA_DIR:-./wordpress}:/var/www/html
- ${WORDPRESS_DATA_DIR:-./wordpress}:/var/www/html/
environment:
- WORDPRESS_DB_NAME=${WORDPRESS_DB_NAME:-wordpress}
- WORDPRESS_TABLE_PREFIX=${WORDPRESS_TABLE_PREFIX:-wp_}
......@@ -18,30 +35,28 @@ services:
- WORDPRESS_DB_USER=${WORDPRESS_DB_USER:-root}
- WORDPRESS_DB_PASSWORD=${WORDPRESS_DB_PASSWORD:-password}
restart: always
labels:
- traefik.enable=false
nginx:
image: nginx:${NGINX_VERSION:-latest}
container_name: ${CONTAINER_PREFIX}-nginx
ports:
- 85:8080
- 447:443
networks:
- web
- default
volumes:
- ${NGINX_CONF_DIR:-./nginx}/conf.d:/etc/nginx/conf.d
- ${NGINX_CONF_DIR:-./nginx}/snippets:/etc/nginx/snippets
- ${NGINX_LOG_DIR:-./logs/nginx}:/var/log/nginx
- ${WORDPRESS_DATA_DIR:-./wordpress}:/var/www/html
- ${NGINX_CONF_DIR:-./nginx}/conf.d:/etc/nginx/conf.d/
- ${NGINX_CONF_DIR:-./nginx}/snippets:/etc/nginx/snippets/
- ${NGINX_LOG_DIR:-./logs/nginx}:/var/log/nginx/
- ${WORDPRESS_DATA_DIR:-./wordpress}:/var/www/html/
depends_on:
- wordpress
restart: always
labels:
- traefik.frontend.rule=Host:${WEB_ADDRESS}
- traefik.frontend.port=85
- traefik.enable=true
- traefik.docker.network=web
- traefik.http.routers.${CONTAINER_PREFIX}.rule=Host(`${WEB_ADDRESS}`)
- traefik.http.routers.${CONTAINER_PREFIX}.tls.certresolver=cloudflare
- traefik.http.services.${CONTAINER_PREFIX}.loadbalancer.server.port=80
- traefik.http.routers.${CONTAINER_PREFIX}.entrypoints=websecure
mysql:
image: mariadb:${MARIADB_VERSION:-latest}
......@@ -56,8 +71,6 @@ services:
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-password}
- MYSQL_DATABASE=${MYSQL_DATABASE:-wordpress}
restart: always
labels:
- traefik.enable=false
redis:
image: redis:alpine
......@@ -66,10 +79,7 @@ services:
networks:
- default
- web
labels:
- traefik.enable=false
networks:
web:
external: true
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment