This is the docker containers architecture used to deploy the assets-discovery api.
-
Add .env file
-
Add
/config/ssh
folder containing:
- mongo_ssh_key
- mongo_ssh_config
- Build
docker-compose build
- Create the database:
docker-compose exec app rails db:setup
- Run
docker-compose up
Make sure that MY_STAGE=production
in the .env
file
docker-compose up -d
Make sure that MY_STAGE=local
in the .env
file
docker-compose up -d
Edit /etc/hosts to contain:
127.0.0.1 discovery.organicity.eu
If needed, visit the site to accept the self-signed ssl discovery.organicity.eu