-
Notifications
You must be signed in to change notification settings - Fork 76
Deploy Ruby + PostgreSQL + Nginx (NTM stack)
John Sundarraj edited this page Oct 15, 2024
·
1 revision
# Modify hosts configuration.
$ notepad C:\Windows\System32\drivers\etc\hosts
192.168.101.6 app.ntm.sloopstash.dv app-static.ntm.sloopstash.dv
192.168.101.6 app.ntm.sloopstash.qaa app-static.ntm.sloopstash.qaa
192.168.101.6 app.ntm.sloopstash.qab app-static.ntm.sloopstash.qab
# Modify hosts configuration.
$ sudo nano /etc/hosts
192.168.101.6 app.ntm.sloopstash.dv app-static.ntm.sloopstash.dv
192.168.101.6 app.ntm.sloopstash.qaa app-static.ntm.sloopstash.qaa
192.168.101.6 app.ntm.sloopstash.qab app-static.ntm.sloopstash.qab
# Allowed values for $ENVIRONMENT variable.
* dev
* qaa
* qab
# Store environment variables.
$ export ENVIRONMENT=dev
# Switch to Docker starter-kit directory.
$ cd /opt/kickstart-docker
# Provision OCI containers using Docker compose.
$ sudo docker compose -f compose/ntm.yml --env-file compose/${ENVIRONMENT^^}.env -p sloopstash-${ENVIRONMENT}-ntm up -d
- DEV environment: http://app.ntm.sloopstash.dv:8001/dashboard
- QAA environment: http://app.ntm.sloopstash.qaa:8002/dashboard
- QAB environment: http://app.ntm.sloopstash.qab:8003/dashboard
# Switch to Docker starter-kit directory.
$ cd /opt/kickstart-docker
# Stop OCI containers using Docker compose.
$ sudo docker compose -f compose/ntm.yml --env-file compose/${ENVIRONMENT^^}.env -p sloopstash-${ENVIRONMENT}-ntm down
# Restart OCI containers using Docker compose.
$ sudo docker compose -f compose/ntm.yml --env-file compose/${ENVIRONMENT^^}.env -p sloopstash-${ENVIRONMENT}-ntm restart
- Home
- Build OCI images
- Deploy Python + Redis + Nginx (CRM stack)
- Deploy NodeJS + MongoDB + Nginx (CTM stack)
- Deploy Ruby + PostgreSQL + Nginx (NTM stack)
- Deploy Hadoop cluster (Data Lake stack)
- Deploy Kafka cluster (Data Lake stack)
- Deploy MongoDB replica cluster (Data Lake stack)
- Deploy Redis cluster (Data Lake stack)