Created
March 16, 2021 10:42
-
-
Save taefreeze/347a63fa8a4ae70c435511903caac67d to your computer and use it in GitHub Desktop.
for my deploy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setup | |
yum install -y epel-release nginx firewalld git | |
install Docker CentOS | |
yum install -y yum-utils | |
yum-config-manager \ | |
--add-repo \ | |
"repolink" | |
yum install docker-ce docker-ce-cli containerd-io | |
Add Docker | |
systemctl start docker | |
systemctl enable docker | |
Add Firewall | |
systemctl start firewalld | |
systemctl enable firewalld | |
firewall-cmd --add-service=http --permanent | |
firewall-cmd --add-service=https --permanent | |
firewall-cmd --reload | |
docker pull image | |
docker run container --> 127.0.0.1:3000:80 | |
NGINX | |
systemctl start nginx | |
systemctl enable nginx | |
/etc/nginx/conf.d | |
conf file | |
server{ | |
server_name <your-site-name>; | |
location / { | |
proxy_pass http://127.0.0.1:8000; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment