문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
docker:docker_compose [2022/03/17 16:25] kwon37xi [docker-compose 에서 network 생성 불가시] |
docker:docker_compose [2022/03/17 16:36] kwon37xi [.env] |
||
---|---|---|---|
줄 27: | 줄 27: | ||
ERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network | ERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network | ||
</ | </ | ||
- | * 이 경우 이미 존재하는 network 를 '' | + | * **하지 말 것** : 이 경우 이미 존재하는 network 를 '' |
services: | services: | ||
| | ||
줄 34: | 줄 34: | ||
* '' | * '' | ||
* docker-compose user defined bridge 일 때만 이름 기반 lookup이 작동한다. | * docker-compose user defined bridge 일 때만 이름 기반 lookup이 작동한다. | ||
- | * 더 좋은 해결책 : IP 대역 충돌이 일어나지 않는 subnet 을 지정한 network 를 생성하고 '' | + | * 더 좋은 해결책 : IP 대역 충돌이 일어나지 않는 subnet 을 지정한 network 를 생성하고 '' |
<code yml> | <code yml> | ||
networks: | networks: | ||
줄 59: | 줄 59: | ||
===== .env ===== | ===== .env ===== | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
* 환경 변수를 지정할 수 있다. | * 환경 변수를 지정할 수 있다. | ||
* '' | * '' | ||
줄 80: | 줄 81: | ||
- web-variables.env # 환경변수 파일 내의 환경변수들이 전달됨. | - web-variables.env # 환경변수 파일 내의 환경변수들이 전달됨. | ||
</ | </ | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
===== 참조 ===== | ===== 참조 ===== | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// |