Haseeb Ahmad
Haseeb Ahmad

Reputation: 8730

How to run docker compose up for production environment

Using docker repository to install rails app on digitalocean Ubuntu 18.

I have using that app official How to install FarmBot Web API on a Fresh Ubuntu 18.10 Machine

I have done all setup .env file, gems installation, db creation, migrations , assets precompile also.

Issue I face is that as per documentation to run app that is the command

sudo docker-compose up

but it not runs on production. How I can run in on production that when I hit ip address app runs

Upvotes: 0

Views: 82

Answers (1)

0x76
0x76

Reputation: 185

What exactly do you mean by "it not runs on production"?

If you just want to keep it running even after closing your terminal you would need to run it with the -d option like so:

sudo docker-compose up -d

If that is not what you are asking for please clarify.

The docker-compose docs may also be helpful.

Upvotes: 2

Related Questions