0
0

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 3 years have passed since last update.

コンテナのアクセスが遅いと感じたので

Posted at

コンテナにアクセスしてブラウザに表示するまでが遅くて不便だったので
対策をメモ

docker-compose.yml

web:
    image: nginx:alpine
    container_name: nginx
    ports:
      - '9400:80'
    depends_on: 
      - app
    volumes: 
      - ./default.conf:/etc/nginx/conf.d/default.conf:delegated
      - .:/var/www/html:delegated
  app:
    build: ./php
    container_name: php
    volumes: 
      - .:/var/www/html:delegated
    depends_on: 
      - mysql

volumeにdelegateオプションを付与

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?