Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chris-luiz-16/nodejs-application-as-a-container-provisioned-via-ansible
Ansible playbook to deploy nodejs application in a docker container
https://github.com/chris-luiz-16/nodejs-application-as-a-container-provisioned-via-ansible
ansible docker dockerfile nodejs
Last synced: 27 days ago
JSON representation
Ansible playbook to deploy nodejs application in a docker container
- Host: GitHub
- URL: https://github.com/chris-luiz-16/nodejs-application-as-a-container-provisioned-via-ansible
- Owner: Chris-luiz-16
- License: mit
- Created: 2023-06-30T17:59:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-30T20:46:43.000Z (over 1 year ago)
- Last Synced: 2024-11-15T02:26:48.259Z (3 months ago)
- Topics: ansible, docker, dockerfile, nodejs
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nodejs-application-as-a-container-provisioned-via-ansible
This repo is used to showcase the deployment of a nodejs-based application as a container to a test server. Here we use 2 ec2-instance, one to build the docker container and push it to the docker-hub and the other is to run a container pulled from the docker hub. Make sure you enter the private IP of the ec2-instance in the **hosts** file and also enter docker account credentials in **passwd.vars** as well.
I've used a simple hello world node-js Dockerfile from my [Github-node-js-repo](https://github.com/Chris-luiz-16/Simple-Nodejs-Hello-world-Docker-image-and-container-build) for demo purposes. You can use your own repo by changing the vars file nodejs.yml playbook## Sample output
***
https://github.com/Chris-luiz-16/Nodejs-application-as-a-container-provisioned-via-ansible/assets/128575317/1cabed9d-d39b-40b0-a47b-d28acdc78917