このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
- 31 CentOS5 TLS1.2 created
- 2024.04.12 MySQL BIT Field created
- 04 ↷ 50_dialy:2024:04:04 から 50_dialy:2024:04:05 へページを名称変更しました。
最近の更新
文書の過去の版を表示しています。
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