docker compose with nginx and certbot - 진행중...

이상빈·2025년 8월 4일

putty 자동 로그인

목록 보기
14/21

sangbinlee9@dev9-elitebook:~$ docker -v
Docker version 28.3.3, build 980b856
sangbinlee9@dev9-elitebook:~$ docker compose version
Docker Compose version v2.39.1
sangbinlee9@dev9-elitebook:~$

docker compose up -d

services:
nginx:
image: nginx:latest
container_name: nginx
environment:
- TZ=Asia/Seoul
ports:
- "80:80" # 외부 : 내부
- "443:443"
volumes: # 외부 : 내부
- ./data/nginx:/etc/nginx/conf.d
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
depends_on:
- certbot
restart: always

certbot:
image: certbot/certbot
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
~

sangbinlee9@dev9-elitebook:~/compose$ docker compose up -d
WARN[0000] /home/sangbinlee9/compose/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 20/20
✔ nginx Pulled 7.5s
✔ 59e22667830b Pull complete 3.2s
✔ 140da4f89dcb Pull complete 4.3s
✔ 96e47e70491e Pull complete 4.4s
✔ 2ef442a3816e Pull complete 4.4s
✔ 4b1e45a9989f Pull complete 4.4s
✔ 1d9f51194194 Pull complete 4.5s
✔ f30ffbee4c54 Pull complete 4.5s
✔ certbot Pulled 10.6s
✔ 0a9a5dfd008f Pull complete 3.6s
✔ 1799ce2dd17e Pull complete 3.9s
✔ 8be8a68a3e49 Pull complete 4.8s
✔ 1d7a63b094ee Pull complete 4.9s
✔ a2c580eaba12 Pull complete 6.2s
✔ 37579339bb65 Pull complete 6.2s
✔ d9e07b9e5b07 Pull complete 6.3s
✔ d58808100c8d Pull complete 6.3s
✔ 56082c55746e Pull complete 6.4s
✔ 396afed88755 Pull complete 6.6s
✔ 04e4c8d13e2f Pull complete 7.5s
[+] Running 3/3
✔ Network compose_default Created 0.0s
✔ Container compose-certbot-1 Started 1.5s
✔ Container nginx Started 0.5s
sangbinlee9@dev9-elitebook:~/compose$

profile
앱 개발 노트

0개의 댓글