IzaacJ

Docker compose labbing

Apr 10th, 2021
700
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: "3.9"
  2.  
  3. services:
  4.   db_private:
  5.     container_name: mariadb_private
  6.     image: mariadb:latest
  7.     ports:
  8.      - "3306"
  9.     volumes:
  10.      - /mnt/docker/configs/mariadb/private:/etc/mysql/conf.d
  11.       - /mnt/docker/storage/mariadb_private:/var/lib/mysql
  12.     restart: always
  13.     environment:
  14.       MYSQL_ROOT_PASSWORD_FILE: /mnt/docker/secrets/mariadb_private_root
  15.  
  16.   db_public:
  17.     container_name: mariadb_public
  18.     image: mariadb:latest
  19.     ports:
  20.      - "10010:3306"
  21.     volumes:
  22.      - /mnt/docker/configs/mariadb/public:/etc/mysql/conf.d
  23.       - /mnt/docker/storage/mariadb_public:/var/lib/mysql
  24.     restart: always
  25.     environment:
  26.       MYSQL_ROOT_PASSWORD_FILE: /mnt/docker/secrets/mariadb_public_root
  27.  
  28.   phpmyadmin:
  29.     container_name: phpmyadmin
  30.     image: phpmyadmin:latest
  31.     ports:
  32.      - "10030:80"
  33.     volumes:
  34.      - /mnt/docker/storage/phpmyadmin/themes/darkwolf:/www/themes/darkwolf
  35.     restart: always
  36.     environment:
  37.       PMA_HOSTS: db_private,db_public
  38.       PMA_PORTS: 3306,10010
  39.       PMA_VERBOSES: Private,Public
  40.     depends_on:
  41.      - db_private
  42.       - db_public
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×