Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Pull your Docker image and other relevant file from GitHub. Once pulled, navigate to your project folder and run the Docker as instructed in Domains of backend APIs and SSL tutorial (make sure to run all docker commands with sudo)you'll see multiple docker. To keep your service from blocking the console, you should run your Docker in detached mode using the -d option.

...

and enter necessary information as prompted.

 

Specify which yml file to use when launching docker on production and test environment

Separate docker-compose config files named docker-compose-prod.yml and docker-compose-test.yml are created.

Since only production and test environment will use this cert. When launching docker, must specify this yml file.

Command Line

Code Block
// For production at 35.168.248.57
docker-compose -f docker-compose-prod.yml up -d

// For test at 3.232.82.82
docker-compose -f docker-compose-test.yml up -d

// For local development on your laptop
// These two commands are equivalents (i.e. default is docker-compose.yml)
docker-compose -f docker-compose.yml up -d
docker-compose up -d