Advertisement
ProFiLeR4100

Portfolio docker example

Jul 9th, 2023 (edited)
854
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.87 KB | Software | 0 0
  1. version: "2"
  2. services:
  3.   portfolio-db:
  4.     image: tobi312/rpi-mariadb:10.5-alpine
  5.     command: '--default-authentication-plugin=mysql_native_password'
  6.     volumes:
  7.      - /ThisMustBeReplacedWithPathToDatabaseFiles:/var/lib/mysql
  8.     restart: always
  9.     environment:
  10.      - MYSQL_ROOT_PASSWORD=ThisMustBeReplacedWithRootPassword
  11.       - MYSQL_DATABASE=wordpress
  12.       - MYSQL_USER=website
  13.       - MYSQL_PASSWORD=ThisMustBeReplacedWithDatabaseUserPassword
  14.     expose:
  15.      - 3306
  16.       - 33060
  17.   portfolio-wordpress:
  18.     image: wordpress:latest
  19.     volumes:
  20.      - /ThisMustBeReplacedWithPathToWebAppFiles:/var/www/html
  21.     ports:
  22.      - 80:80
  23.     restart: always
  24.     environment:
  25.      - WORDPRESS_DB_HOST=portfolio-db
  26.       - WORDPRESS_DB_USER=website
  27.       - WORDPRESS_DB_PASSWORD=ThisMustBeReplacedWithDatabaseUserPassword
  28.       - WORDPRESS_DB_NAME=wordpress
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement