From 162517226ed01e5b351af179b9a696e0b8e81332 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Sat, 16 Jul 2022 16:16:55 -0700 Subject: [PATCH] Enable megan-portfolio wordpress --- .../config/megan-portfolio/docker-compose.yml | 88 ++++++++----------- 1 file changed, 35 insertions(+), 53 deletions(-) diff --git a/server/config/megan-portfolio/docker-compose.yml b/server/config/megan-portfolio/docker-compose.yml index a9c84d5..0d95aed 100644 --- a/server/config/megan-portfolio/docker-compose.yml +++ b/server/config/megan-portfolio/docker-compose.yml @@ -1,63 +1,45 @@ version: '3.1' services: - nginx: - image: nginx - container_name: nginx_meganmcdonough-art - networks: - - web - labels: - - traefik.http.routers.nginx.rule=Host(`meganmcdonough.art`) - - traefik.http.routers.nginx.tls.certresolver=lets-encrypt - - nginx-test: - image: nginx - container_name: nginx_test - networks: - - web - labels: - - traefik.http.routers.nginx2.rule=Host(`test.jafner.net`) - - traefik.http.routers.nginx2.tls.certresolver=lets-encrypt - networks: web: external: true portfolio: - # megan-portfolio: - # image: wordpress - # container_name: wordpress_megan-portfolio - # restart: "no" - # environment: - # WORDPRESS_DB_HOST: portfolio_db - # WORDPRESS_DB_USER: wordpress - # WORDPRESS_DB_PASSWORD: wordpress - # WORDPRESS_DB_NAME: wordpressdb - # volumes: - # - ${DOCKER_DATA}/html:/var/www/html - # labels: - # - traefik.http.routers.megan-portfolio.rule=Host(`meganmcdonough.art`) - # - traefik.http.routers.megan-portfolio.tls.certresolver=lets-encrypt - # - traefik.port=80 - # networks: - # - web - # - portfolio - # depends_on: - # - portfolio_db + megan-portfolio: + image: wordpress + container_name: wordpress_megan-portfolio + restart: "no" + environment: + WORDPRESS_DB_HOST: portfolio_db + WORDPRESS_DB_USER: wordpress + WORDPRESS_DB_PASSWORD: wordpress + WORDPRESS_DB_NAME: wordpressdb + volumes: + - ${DOCKER_DATA}/html:/var/www/html + labels: + - traefik.http.routers.megan-portfolio.rule=Host(`meganmcdonough.art`) + - traefik.http.routers.megan-portfolio.tls.certresolver=lets-encrypt + - traefik.port=80 + networks: + - web + - portfolio + depends_on: + - portfolio_db - # portfolio_db: - # image: mysql:5.7 - # container_name: wordpress_portfolio-db - # restart: "no" - # networks: - # - portfolio - # environment: - # MYSQL_DATABASE: wordpressdb - # MYSQL_USER: wordpress - # MYSQL_PASSWORD: wordpress - # MYSQL_RANDOM_ROOT_PASSWORD: '1' - # volumes: - # - ${DOCKER_DATA}/db:/var/lib/mysql - # labels: - # - traefik.enable=false + portfolio_db: + image: mysql:5.7 + container_name: wordpress_portfolio-db + restart: "no" + networks: + - portfolio + environment: + MYSQL_DATABASE: wordpressdb + MYSQL_USER: wordpress + MYSQL_PASSWORD: wordpress + MYSQL_RANDOM_ROOT_PASSWORD: '1' + volumes: + - ${DOCKER_DATA}/db:/var/lib/mysql + labels: + - traefik.enable=false