このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
50_dialy:2021:04:29 [2021/12/28 07:08] – matsui | 50_dialy:2021:04:29 [2023/05/17 01:26] (現在) – matsui | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== 2021.04.29 Docker dokuwiki ====== | + | ====== 2021.04.29 Docker dokuwiki |
+ | |||
+ | ※[[50_dialy: | ||
+ | |||
+ | こちらのlinuxserverのdokuwikiはnginxで動きます。 | ||
SSL付きのDokuwiki | SSL付きのDokuwiki | ||
行 5: | 行 9: | ||
[[https:// | [[https:// | ||
+ | ===== docker-compose.yml ===== | ||
< | < | ||
行 24: | 行 29: | ||
STAGE: ' | STAGE: ' | ||
# | # | ||
- | volumes: | ||
- | - ./ | ||
| | ||
dokuwiki: | dokuwiki: | ||
行 36: | 行 39: | ||
volumes: | volumes: | ||
- ./ | - ./ | ||
+ | # - / | ||
#ports: | #ports: | ||
# - 80:80 | # - 80:80 | ||
# - 443:443 #optional | # - 443:443 #optional | ||
restart: unless-stopped | restart: unless-stopped | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== 起動 ===== | ||
+ | < | ||
+ | # docker-compose up -d | ||
+ | </ | ||
+ | |||
+ | このあと下記へアクセス | ||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | ===== tmpfs ===== | ||
+ | |||
+ | tmpfsにfastcgi_cacheを置く場合、tmpfsの設定を入れる | ||
+ | |||
+ | < | ||
+ | tmpfs / | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | mkdir /tmpfs | ||
+ | mount /tmpfs | ||
</ | </ | ||
行 50: | 行 78: | ||
real_ip_header | real_ip_header | ||
</ | </ | ||
+ | |||
+ | このX-Forwared-Forを入れないと、dockerの場合[[dokuwiki: | ||
===== FastCGI cache ===== | ===== FastCGI cache ===== | ||
+ | http{}の中にfastcgi_cache_pathとfastcgi_cache_keyの記述を追加 | ||
< | < | ||
- | fastcgi_cache_path /config/cache/nginx levels=1:2 keys_zone=cache-zone: | + | http { |
- | fastcgi_cache_key " | + | |
+ | fastcgi_cache_key " | ||
</ | </ | ||
行 116: | 行 148: | ||
# yum update systemd | # yum update systemd | ||
</ | </ | ||
+ | |||
+ | |||
+ | ===== 既存環境からのコピー ===== | ||
+ | |||
+ | data、conf、tplのコピー | ||
+ | < | ||
+ | rsync hoge@hogehoge.com:/ | ||
+ | rsync hoge@hogehoge.com:/ | ||
+ | rsync hoge@hogehoge.com:/ | ||
+ | </ | ||
+ | |||
+ | 後は、既存環境と同じ拡張機能をインストール | ||
+ | |||
+ | |||
{{tag> | {{tag> |