このページの翻訳:
- 日本語 (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: "2.1"
services:
https-portal:
image: steveltn/https-portal:1
ports:
- '80:80'
- '443:443'
links:
- web
#restart: always
restart: unless-stopped
environment:
DOMAINS: 'testwiki.hogehoge.com -> http://web'
STAGE: 'local'
#STAGE: 'production'
#FORCE_RENEW: 'true'
volumes:
- ./docker/web/:/etc/nginx/conf.d/
web:
image: nginx:1.15.6
#ports:
#- '8000:80'
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/html:/var/www/html
mkdir -p nginx/conf.d mkdir -p nginx/html
# tree -l /app
/app
├── docker
│ └── web
├── docker-compose.yml
└── nginx
├── conf.d
│ └── default.conf
└── html
└── index.html
docker-compose up -d