Last active
February 13, 2022 06:21
-
-
Save naviarh/ba4e1e9a7043c24ad824199e5f7f0221 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
wp: | |
image: milanb/wordpress-sqlite | |
restart: unless-stopped | |
environment: | |
- WP_HOME=http://localhost:8002 | |
- WP_SITEURL=http://localhost:8002 | |
volumes: | |
- "./db:/var/www/db" | |
- "./html:/var/www/html" | |
http: | |
image: milanb/wordpress-nginx | |
restart: unless-stopped | |
links: | |
- wp:wordpress | |
#volumes_from: | |
#- wp | |
volumes: | |
- "./db:/var/www/db" | |
- "./html:/var/www/html" | |
ports: | |
- "8002:80" | |
# Предварительно нужно сделать вручную!!! | |
# Создать каталог: | |
# mkdir db | |
# сменить владельца этому каталогу: | |
# sudo chown -R 82.82 db | |
# Адрес сайта: localhost:8001 | |
# После запуска версия вордпресс будет старой, надо обновить в админке сайта | |
# Бекап всей системы - архивировать весь каталог | |
# Развернуть бекап: | |
# 1. Разархивировать бекап | |
# 2. Изменить адрес порта (8001) в файле docker-compose.yml | |
# 3. Изменить Владельца каталогов и файлов: | |
# sudo chown -R 82.82 db | |
# sudo chown -R 82.82 html | |
# 4. docker-compose up -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment