Skip to content

Instantly share code, notes, and snippets.

@taefreeze
Created March 16, 2021 10:42
Show Gist options
  • Save taefreeze/347a63fa8a4ae70c435511903caac67d to your computer and use it in GitHub Desktop.
Save taefreeze/347a63fa8a4ae70c435511903caac67d to your computer and use it in GitHub Desktop.
for my deploy
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