Skip to content

Commit

Permalink
accomidate new env vars
Browse files Browse the repository at this point in the history
Co-authored-by: Mariano Ruiz <mrsarm@gmail.com>
  • Loading branch information
mrjones-plip and mrsarm committed Mar 17, 2021
1 parent 35f5bb5 commit fd144d7
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,18 @@ ERROR: for nginx-local-ip_app_1 Cannot start service app: driver failed program
5cdae3a684): Error starting userland proxy: listen tcp4 0.0.0.0:443: bind: address already in use
```

You may need to edit the `docker-compose.yml` to use different ports. For example, you could shift them up to 8xxx like so:
You may need to change one or both ports. For example, you could shift them up to 8xxx like so:

```
ports:
- "8080:80"
- "8443:443"
```
$ HTTP=8080 HTTPS=8443 APP_URL=http://192.168.1.3:5988 docker-compose up

Also a convenient environment file can be used to store the new values as suggested in the [Running with Medic-OS](#running-with-medic-os) section:

**my.env file:**

HTTP=8080
HTTPS=444

Run with: `APP_URL=https://192.168.1.3:5988 docker-compose --env-file=my.env up`

You would then access your dev instance with the `8443` port. Using the sample URL from above, it would go from `https://192-168-0-3.my.local-ip.co` to this instead `https://192-168-0-3.my.local-ip.co:8443`.

Expand Down

0 comments on commit fd144d7

Please sign in to comment.