This project consists in having you set up a small infrastructure composed of different services under specific rules.
- You have to use docker-compose.
- It means you have to build yourself the Docker images of your project.
• A Docker container that contains NGINX with TLSv1.2 or TLSv1.3 only.
• A Docker container that contains WordPress + php-fpm (it must be installed and configured) only without nginx.
• A Docker container that contains MariaDB only without nginx.
• A volume that contains your WordPress database.
• A second volume that contains your WordPress website files.
• A docker-network that establishes the connection between your containers.
Your containers have to restart in case of a crash.
- tail -f : 데몬의 작동 방식
- 네트워크에 host, links, --link 는 사용금지이다.
- 네트워크 라인은 docker-compose.yml 에 표현되어야한다.
- The following are a few prohibited hacky patches:
tail -f, bash, sleep infinity, while true.
- Read about PID 1 and the best practices for writing Dockerfiles
- wordpress DB는 두개의 유저를 가지며 그 중 하나는 관리자이다.
- 관리자의 username은 admin이라는 이름이 포함되면 안된다.
- 볼륨은 도커를 사용하는 host machined의 /home/login/data 폴더에 있을 수 있다.
Of course, you have to replace the login with yours.
- To make things simpler, you have to configure your domain name so it points to your local IP address
- san.42.fr will redirect to the IP address pointing to san's website.
- 패스워드가 도커파일에 제시되면 안된다.
- 환경변수 사용은 필수이다
- 환경 변수에 .env 사용하는 거 강추
- Your NGINX container must be the only entrypoint into your infrastructure via the port 443 only, using the TLSv1.2 or TLSv1.3 protocol.
# 인프라
https://www.notion.so/b67ed727aea4467cbc3226bb0c8e8336
왕초보도 따라하는 도커 기초 강의
목차
www.notion.so
https://www.bsidesoft.com/7851
[Docker] 도커 기초 명령어 익히기 - Bsidesoft co.
개요 지난 글에서 도커(Docker)에 대해 간단히 소개하고 우분투 리눅스에 도커를 설치하는 방법을 공부했습니다. [Docker] 도커 소개와 우분투에 Docker CE 설치하기 이번에는 원격 저장소에 있는 도커
www.bsidesoft.com
https://learn.microsoft.com/ko-kr/visualstudio/docker/tutorials/docker-tutorial
자습서: Visual Studio Code에서 Docker 앱 시작
이 자습서에서는 VS Code에서 Docker 사용을 시작하는 방법을 알아봅니다. Azure에 앱을 만들고 배포합니다.
learn.microsoft.com
volume : 일종의 파일
도커 네트워크
dockerfile -> image를 생성하는 방법에 대해 기재되어 있는 파일 -> 이대로 이미지가 생성되게 된다.
https://bigpel66.oopy.io/library/docker/docker/5
Dockerfile
Subjects
bigpel66.oopy.io
알파인 리눅스
https://velog.io/@dry8r3ad/why-alpine-linux
왜 컨테이너 환경에서는 Alpine Linux가 선호될까?
세상은 넓고 리눅스 배포판은 많다. 이 글에서는 왜 컨테이너 환경에서는 그동안 일반적으로 널리 쓰였던 우분투 등의 배포판보다 알파인 리눅스가 더 보편적으로 쓰이는지 조사한 내용을 정리
velog.io
nginx
https://whatisthenext.tistory.com/123
tls
https://www.cloudflare.com/ko-kr/learning/ssl/transport-layer-security-tls/
nginx-tls
https://extrememanual.net/1942
https://leehc257.tistory.com/11
vim vundle Plugin 추천
linux를 사용하게 되면 vi editor를 쓰게되는데 이때 window에 있는 editor와는 다른 단축키들과 기능으로 많이 고생했던 기억이 있다. 단축키의 경우는 많이 사용하면서 익숙해지는 수 밖에 없는 것 같
leehc257.tistory.com
'42seoul > circle-5' 카테고리의 다른 글
[Inception] 1. 도커 공부하기 (2) | 2022.12.29 |
---|
댓글