[OCI]NPM install(ft. docker)# Virtualation/Public Cloud2024. 4. 30. 15:22
Table of Contents
728x90
반응형
NPM용 네트워크 추가
ubuntu@ddogan:~$ sudo docker network create npm
0fe46e3889d4abba852c068c44e07f93654d05b1f7f65374c8d80a178c8f6a4e
ubuntu@ddogan:~$ sudo docker network list
NETWORK ID NAME DRIVER SCOPE
8aaad9802621 bridge bridge local
361243cade04 host host local
e6191dc0c61a none null local
0fe46e3889d4 npm bridge local
도커 컴포즈 실행
version: '3'
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
ports:
- '80:80'
- '81:81'
- '443:443'
environment:
DB_MYSQL_HOST: "db"
DB_MYSQL_PORT: 3306
DB_MYSQL_USER: "npm"
DB_MYSQL_PASSWORD: "npm"
DB_MYSQL_NAME: "npm"
volumes:
- ./volume/data:/data
- ./volume/letsencrypt:/etc/letsencrypt
- ./config.json:/app/config/production.json
db:
image: 'jc21/mariadb-aria:latest'
environment:
MYSQL_ROOT_PASSWORD: 'npm'
MYSQL_DATABASE: 'npm'
MYSQL_USER: 'npm'
MYSQL_PASSWORD: 'npm'
volumes:
- ./volume/mysql:/var/lib/mysql
networks:
default:
external:
name: 'npm'
728x90
반응형
'# Virtualation > Public Cloud' 카테고리의 다른 글
[OCI]wireguard install(ft. docker) (0) | 2024.05.01 |
---|---|
[OCI]portainer install(ft. docker) (0) | 2024.04.30 |
[OCI]docker install (0) | 2024.04.30 |
piVPN install(WireGuard) (0) | 2023.03.07 |
[OCI]2단계 인증(2FA, Two-factor authentication) 설정 (0) | 2022.10.24 |
@다크쉐라빔 :: 다크쉐라빔의 주절주절
안녕하세요. 이곳은 IT위주의 잡다한 정보를 올려두는 개인 블로그입니다.
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!