728x90
반응형
SMALL
2. Docker Portainer 설치
2-1. yml 파일 수정 및 설치
portainer은 서버 접속하지 않고 외부에서(Web) Container status를 확인 가능합니다.
# vi docker-compose.yml |
version: '3.9 services: httpd: image: httpd:2.4.54 container_name: httpd restart: unless-stopped # 서버 부팅시 컨테이너 가동 ports: - "80:80" volumes: - /home/vittorio/httpd/html/:/usr/local/apache2/htdocs/ # 웹 소스 파일 경로 mysql: image: mysql:8.0.31 container_name: mysql restart: unless-stopped hostname: mysql tty: true environment: MYSQL_ROOT_PASSWORD: 12345678 SERVICE_TAGS: dev SERVICE_NAME: mysql TZ: Asia/Seoul php: image: php:8.2.0-fpm container_name: php restart: unless-stopped ports: - "9000:9000" volumes: - /home/vittorio/httpd/html/:/var/www/html/ command: - /bin/sh - -c - | echo "security.limit_extensions = .html .htm .php" >> /usr/local/etc/php-fpm.d/www.conf php-fpm # 아래 두 줄을 추가합니다. && apt-get update \ && apt-get install -y sendmail portainer: image: portainer/portainer-ce:alpine container_name: portainer restart: always ports: - 8880:9000 volumes: - /var/run/docker.sock:/var/run/docker.sock - ./portainer_data:/data volumes: portainer_data: |
해당 내용을 저장합니다.
# docker compose up -d portainer |
# docker compose up -d portainer [+] Running 11/11 ✔ portainer 10 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 9.5s ✔ f56be85fc22e Pull complete 1.2s ✔ 5171176db7f2 Pull complete 2.2s ✔ a143fdc4fa02 Pull complete 3.2s ✔ b622730c7bdc Pull complete 3.9s ✔ 69dd1305b74e Pull complete 4.7s ✔ 478c044cbb56 Pull complete 4.8s ✔ a323bd23deb3 Pull complete 5.5s ✔ ff50649b6557 Pull complete 6.0s ✔ 001eed39bcf2 Pull complete 6.1s ✔ 4f4fb700ef54 Pull complete 6.2s [+] Running 1/1 ✔ Container portainer Started |
# docker compose ps portainer portainer/portainer-ce:alpine "/portainer" portainer 9 seconds ago Up 6 seconds 8000/tcp, 9443/tcp, 0.0.0.0:8880->9000/tcp, :::8880->9000/tcp |
2-1. 접속 확인
web에서 url 창에 ip:8880 으로 접속시도시 첫 로그인 페이지를 확인할수있습니다.
이 후 메뉴얼은 https://help.iwinv.kr/manual/read.html?idx=548
3.Portainer 로그인 부터 진행해주시면됩니다.
이상입니다.
728x90
반응형
LIST
'Linux&Ubuntu > Docker&kuber' 카테고리의 다른 글
Ubuntu 22.04 Kubernetes + Korifi 설치하기 (테스트) (0) | 2023.11.30 |
---|---|
docker porteiner로 mailserver 구축하기. (0) | 2023.09.18 |
docker php 설정하기 (0) | 2023.09.18 |
Docker mysql 설정하기 (0) | 2023.09.18 |
docker apm+ssl 인증서 (0) | 2023.09.14 |