このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
- 03 Zed editor 設定 [Windowsでビルド]
- 09 ↷ 50_dialy:2025:09:09 から 50_dialy:2025:09:08 へページを名称変更しました。
- 06 ↷ 50_dialy:2025:06 から 50_dialy:2025:09:06 へページを移動しました。
最近の更新
Nginxを動かすだけのdocker-compose
docker-compose.yml
--- version: 039;3039; services: nginx: image: nginx:latest ports: - "8080:80" volumes: - ./public:/usr/share/nginx/html
docker-compose.yml
---
version: "2.1"
services:
https-portal:
image: steveltn/https-portal:1
ports:
- 039;80:80039;
- 039;443:443039;
links:
- web
#restart: always
restart: unless-stopped
environment:
DOMAINS: 039;testwiki.hogehoge.com -> http://web039;
STAGE: 039;local039;
#STAGE: 039;production039;
#FORCE_RENEW: 039;true039;
volumes:
- ./docker/web/:/etc/nginx/conf.d/
web:
image: nginx:1.15.6
#ports:
#- 039;8000:80039;
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/html:/var/www/html
mkdir -p nginx/conf.d
mkdir -p nginx/html
hostname > nginx/html/index.html
cat << __EOM__
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location / {
root /var/www/html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache039;s document root
# concurs with nginx039;s one
#
#location ~ /\.ht {
# deny all;
#}
}
__EOM__
# tree -l /app
/app
├── docker
│ └── web
├── docker-compose.yml
└── nginx
├── conf.d
│ └── default.conf
└── html
└── index.html
docker-compose up -d