mirror of https://github.com/tiyn/wiki
parent
081659b142
commit
ca182c8655
@ -0,0 +1,64 @@
|
||||
# bilde2910 - Hauk
|
||||
|
||||
This is a docker container for a [Hauk](../hauk.md).
|
||||
|
||||
## Set-up
|
||||
|
||||
Create the files `rebuild.sh` and `docker-compose.yml` at the same place.
|
||||
Additionally create a `config.php` file based on the
|
||||
[config-sample](https://github.com/bilde2910/Hauk/blob/master/backend-php/include/config-sample.php)
|
||||
at the location specified in your `docker-compose.yml` (in this example it's
|
||||
`./config/hauk`).
|
||||
Change the config according to your needs.
|
||||
Do not change anything starting with `memcached` inside the `config.php`.
|
||||
Most importantly set the `public_url` correctly.
|
||||
For a simple multi-user setup set `auth_method` to `HTPASSWD`.
|
||||
Then inside the same folder of `config.php` run the following command to setup
|
||||
the first and optionally more users.
|
||||
|
||||
```sh
|
||||
htpasswd -cBC 10 /etc/hauk/users.htpasswd <first user name>
|
||||
htpasswd -BC 10 /etc/hauk/users.htpasswd <other user name>
|
||||
```
|
||||
|
||||
Finally run `./rebuild.sh`.
|
||||
|
||||
## Volumes
|
||||
|
||||
Set the following volumes in the `volumes:` section of the docker-compose file.
|
||||
|
||||
| Outside mount/volume name | Container mount | Description |
|
||||
| ------------------------- | ------------------ | ------------------------------ |
|
||||
| `./config/hauk` | `/etc/hauk` | config and password location |
|
||||
|
||||
## Ports
|
||||
|
||||
Set the following ports in the `ports:` section.
|
||||
|
||||
| Container Port | Recommended outside port | Protocol | Description |
|
||||
| -------------- | ------------------------ | -------- | ---------------------- |
|
||||
| `80` | `80` | TCP | Basic service |
|
||||
|
||||
## rebuild.sh
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
docker-compose down
|
||||
docker pull bilde2910/hauk
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
## docker-compose.yml
|
||||
|
||||
```yml
|
||||
version: "2"
|
||||
|
||||
services:
|
||||
hauk:
|
||||
image: bilde2910/hauk
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./config/hauk:/etc/hauk
|
||||
ports:
|
||||
- "80:80"
|
||||
```
|
@ -0,0 +1,11 @@
|
||||
# Hauk
|
||||
|
||||
Hauk is a selfhostable location sharing server that can be used with the Hauk
|
||||
app that is available at
|
||||
[F-Droid](https://f-droid.org/packages/info.varden.hauk/) and
|
||||
[Google Play Store](https://play.google.com/store/apps/details?id=info.varden.hauk).
|
||||
|
||||
## Setup
|
||||
|
||||
The server can be setup via docker with the
|
||||
[bilde2910 image](/wiki/docker-images/bilde2910_-_hauk.md).
|
Loading…
Reference in new issue