Установка и запуск Wordpress на Raspberry Pi

Pavlo Vasylchenko
Oct 6, 2018 · 3 min read
Raspberry Pi
curl -fsSL get.docker.com | sh
sudo usermod -aG docker pi
sudo apt install -y docker-compose
mkdir docker
cd docker
nano docker-compose.yml
version: '2'
services:
db:
image: hypriot/rpi-mysql:5.5
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
depends_on:
- db
image: wordpress:latest
ports:
- "80:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
volumes:
db_data:
sudo docker-compose up -d

Pavlo Vasylchenko

Written by

Lawyer & Software Developer. If you need more information you can ask me.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade