3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

https-portalを正しく使っているのにうまく表示されない

Posted at

単純なことだけど結構ハマったので備忘録として。
話を単純にするために簡略化しているが、次のようなdocker-compose.ymlを書いた。

docker-compose.yml
version: '3'
services:
  https-portal:
    image: steveltn/https-portal:1
    ports:
      - 80:80
      - 443:443
    depends_on:
      - apache
    environment:
      DOMAINS: 'example.com -> http://wordpress'
      STAGE: 'local'

  apache:
    image: apache:2.4
    volumes:
      - ./html:/var/www/html

当然、正常に動く。自宅のPC(Linux)ではこれで開発していたのだから間違いない。
ところが出社して、docker-compose upしてみるとなぜか繋がらない。
設定も正しいし、ファイルに欠けているものもない。

結論

docker-compose logsしてみたら、https-portalコンテナがまだ起動していないだけだった。
WindowsはDockerをVM上で扱うためか、Linuxよりもかなり遅いようだ。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?