- Create Self-signed certifications
- Run
docker-compose up -d
- C: Country code in our case its UK
- ST: State, Greater London
- L: City, London
- O: Organisation
- OU: Organisation Unit i.e. Dept.
- CN: Common Name its important this is the server name.
We can format the details of the Cert. into one string and automate the creation of the Self-signed certificate.
-subj "/C=UK/O=IndexFeed/OU=DevOps Dept. /CN=nexus.cards.idx.zone"
openssl req -x509 -nodes -days 365 \
-newkey rsa:2048 \
-keyout nginx-selfsigned.key \
-out nginx-selfsigned.crt \
-subj "/C=UK/O=IndexFeed/OU=DevOps Dept. /CN=nexus.cards.idx.zone"
req
-509
-nodes
-days 365
-newkey
-out
-subj
docker-compose stop
docker-compose rm
docker network ls
docker network rm nginx-net
docker volume ls
docker volume rm nexus-data
Or alternatively you could prune
the environment with:
docker network prune
docker volume prune
vagrant up
vagrant ssh
Now inside the vagrant VM
cd /vagrant
sudo ./bin/setup-env.sh
docker-compose up -d
Containers should be started
# Prints vagrant IP
vagrant ssh -c "hostname -I | cut -d' ' -f2" 2>/dev/null
The file should look something like this:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
192.168.1.110 nexus.cards.idx.zone
- log onto nexus: https://nexus.cards.idx.zone
- Username: admin
- Password: admin123