Change to 8080 as default exposed port. Add documentation for podman #4
This commit is contained in:
parent
75c76f77c3
commit
c02f533f36
2 changed files with 13 additions and 4 deletions
13
README.md
13
README.md
|
@ -7,8 +7,8 @@ or [Docker Hub](https://hub.docker.com/r/varakh/filebin).
|
||||||
|
|
||||||
## Getting started
|
## Getting started
|
||||||
|
|
||||||
The recommended way to get started is to use the example `docker-compose.yml` file and make yourself familiar with the
|
The recommended way to get started is to use the example `docker-compose.yml` file and use *Docker*. Before, make
|
||||||
environment variables which can be set. Defaults should do as a starting point.
|
yourself familiar with the environment variables which can be set. Defaults should do as a starting point.
|
||||||
|
|
||||||
_Be sure to read persisting volumes_ section and execute the required command.
|
_Be sure to read persisting volumes_ section and execute the required command.
|
||||||
|
|
||||||
|
@ -24,6 +24,13 @@ docker exec -it filebin_app /bin/sh
|
||||||
php /var/www/index.php user add_user
|
php /var/www/index.php user add_user
|
||||||
```
|
```
|
||||||
|
|
||||||
|
_Alternatively_ you can also use *Podman* for a root-less deployment, e.g. with something similar to:
|
||||||
|
|
||||||
|
```
|
||||||
|
podman run -e POSTGRES_PASSWORD=fb -e POSTGRES_USER=fb -e POSTGRES_DB=fb -p 5432:5432 docker.io/postgres:11
|
||||||
|
podman run -e BASE_URL=http://localhost:8080 -e DB_HOST=your_host -e DB_PORT=5432 -e DB_NAME=fb -e DB_USER=fb -e DB_PASS=fb -e ENCRYPTION_KEY=your_32_long_secret -p 8080:80 docker.io/varakh/filebin:latest
|
||||||
|
```
|
||||||
|
|
||||||
### Persisting volumes
|
### Persisting volumes
|
||||||
|
|
||||||
You'll probably want the `uploads/` folder to be persistent across container restarts.
|
You'll probably want the `uploads/` folder to be persistent across container restarts.
|
||||||
|
@ -81,7 +88,7 @@ An example nginx configuration might look like the following.
|
||||||
|
|
||||||
```
|
```
|
||||||
upstream filebin {
|
upstream filebin {
|
||||||
server 127.0.0.1:181;
|
server 127.0.0.1:8080;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|
|
@ -21,8 +21,10 @@ services:
|
||||||
app:
|
app:
|
||||||
image: varakh/filebin:latest
|
image: varakh/filebin:latest
|
||||||
container_name: filebin_app
|
container_name: filebin_app
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:181:80 # exposed port :80 mapped to :181 on only this host. 181 should then be used in proxy
|
- 127.0.0.1:8080:80 # exposed port :80 mapped to :8080 on only this host. 8080 should then be used in proxy
|
||||||
environment:
|
environment:
|
||||||
- BASE_URL=https://fb.domain.tld/ # with trailing slash
|
- BASE_URL=https://fb.domain.tld/ # with trailing slash
|
||||||
- DB_HOST=db
|
- DB_HOST=db
|
||||||
|
|
Loading…
Reference in a new issue