From b957ff8615f8a05bb5f276b037f5cb471a5f9212 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Fri, 15 Jul 2022 23:56:38 -0700 Subject: [PATCH] #39 | - Add socials - Delete "Public Cloud" section - Move jafner.tools section to the bottom - Remove all the admin-only services --- jafner-tools/config/nvgm/.env | 2 + jafner-tools/config/nvgm/docker-compose.yml | 53 +++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 jafner-tools/config/nvgm/.env create mode 100644 jafner-tools/config/nvgm/docker-compose.yml diff --git a/jafner-tools/config/nvgm/.env b/jafner-tools/config/nvgm/.env new file mode 100644 index 0000000..0d306d9 --- /dev/null +++ b/jafner-tools/config/nvgm/.env @@ -0,0 +1,2 @@ +DOCKER_DATA=/home/joey/data/nvgm + diff --git a/jafner-tools/config/nvgm/docker-compose.yml b/jafner-tools/config/nvgm/docker-compose.yml new file mode 100644 index 0000000..5cb2796 --- /dev/null +++ b/jafner-tools/config/nvgm/docker-compose.yml @@ -0,0 +1,53 @@ +version: '3.1' + +services: + nvgm: + image: wordpress + container_name: wordpress_nvgm + logging: + driver: loki + options: + loki-url: http://localhost:3100/loki/api/v1/push + loki-batch-size: "50" + loki-retries: "1" + loki-timeout: "2s" + keep-file: "true" + restart: "no" + environment: + WORDPRESS_DB_HOST: nvgm_db + WORDPRESS_DB_USER: wordpress + WORDPRESS_DB_PASSWORD: wordpress + WORDPRESS_DB_NAME: wordpressdb + volumes: + - ${DOCKER_DATA}/html:/var/www/html + labels: + - traefik.http.routers.nvgm.rule=Host(`nvgm.jafner.net`) + - traefik.http.routers.nvgm.tls=true + - traefik.http.routers.nvgm.tls.certresolver=lets-encrypt + - traefik.port=80 + networks: + - web + - nvgm + depends_on: + - nvgm_db + + nvgm_db: + image: mysql:5.7 + container_name: wordpress_nvgm-db + restart: "no" + networks: + - nvgm + environment: + MYSQL_DATABASE: wordpressdb + MYSQL_USER: wordpress + MYSQL_PASSWORD: wordpress + MYSQL_RANDOM_ROOT_PASSWORD: '1' + labels: + - traefik.enable=false + volumes: + - ${DOCKER_DATA}/db:/var/lib/mysql + +networks: + web: + external: true + nvgm: