Skip to content

Commit

Permalink
Added the option for a docker container to restart upon reboot (#19)
Browse files Browse the repository at this point in the history
* adding container restart upon reboot

* Update docker-compose.yml

* adding information for restarting docker dontainer
  • Loading branch information
jnoc authored Jan 5, 2023
1 parent a8110e3 commit 5b5541f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Huxley2/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: "3.9"
services:
huxley2:
# restart: always
build: .
environment:
- DarwinAccessToken=${ACCESS_TOKEN}
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ CLIENT_ACCESS_TOKEN=abcde12345

To rebuild use `docker-compose build` or `docker-compose up --build`.

If you want to run the container in the background you can run `docker-compose up --detach`

If you would like the docker container to _reboot upon restart_ on the host machine you can uncomment `restart: always` in the docker-compose.yml file and make sure the docker service is set to start upon bootup.

## Station Codes File

If you need to regenerate [the station codes CSV file in this repo](https://raw.githubusercontent.com/jpsingleton/Huxley2/master/station_codes.csv) then you can do so easily with [`jq`](https://stedolan.github.io/jq/) (and `curl`) using an instance that has access to the staff API (and has been restarted recently). On Linux, you can install simply with your package manager, e.g. `sudo apt install jq` (on Ubuntu/Debian).
Expand Down

0 comments on commit 5b5541f

Please sign in to comment.