BikeBike Docker Container Image for the Yellow Bike Database
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.6 KiB

# YBDB
10 years ago
**BikeBike Docker Container Image for Yellow Bike Dabtabase**
Yellow Bike [Project's](http://austinyellowbike.org) Hours and Transaction [Database](http://austinyellowbike.org/about/special-projects/yellow-bike-hours-and-transaction-database/).
10 years ago
Heavily developed [YBP Devel](https://github.com/fspc/Yellow-Bike-Database/tree/devel) is being utilized.
## 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:
10 years ago
```
docker pull bikebike/ybdb
```
Then run the docker container:
10 years ago
Publish the container's port to the host:
>format: ip:hostPort:containerPort | ip::containerPort | hostPort:containerPort
```
docker run -d -p 81:80 --name="ybdb" bikebike/ybdb
10 years ago
```
## How to test/develop inside the running container process
```
sudo docker exec -it ybdb /bin/bash
```
If it produces this error:
```
rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: container_linux.go:247: starting container process caused \"process_linux.go:75: starting setns process caused \\\"fork/exec /proc/self/exe: no such file or directory\\\"\"\n"
```
then do this before attempting again:
10 years ago
```
docker stop ybdb
docker start ybdb
10 years ago
```