Browse Source

adding docker-compose instructions

master
Jonathan Rosenbaum 6 years ago
committed by GitHub
parent
commit
cdb5a55de3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 24
      README.md

24
README.md

@ -6,13 +6,29 @@ Yellow Bike [Project's](http://austinyellowbike.org) Hours and Transaction [Data
Heavily developed [YBP Devel](https://github.com/fspc/Yellow-Bike-Database/tree/devel) is being utilized.
## Pull the repository
## How to Use
The recommended way is to run `docker-compose up -d`.
## Advanced environmental changes
The docker-compose.yml file looks for a file called environment. I enjoy using [docker-letsencrypt-nginx-proxy-companion](https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion), so here is what I add:
###### environment
```
VIRTUAL_HOST=ybdb.bikelover.org
LETSENCRYPT_HOST=ybdb.bikelover.org
LETSENCRYPT_EMAIL="jr@bikelover.org"
```
## Old Fashioned way
If you do not want to use docker-compose, you may pull the repository:
```
docker pull bikebike/ybdb
```
## Run the docker container
Then run the docker container:
Publish the container's port to the host:
@ -23,10 +39,6 @@ Publish the container's port to the host:
docker run -d -p 81:80 --name="ybdb" bikebike/ybdb
```
### Status
Moving along nicely!
## How to test/develop inside the running container process
```

Loading…
Cancel
Save