mirror of
https://github.com/tiyn/wiki.git
synced 2026-07-02 18:11:35 +02:00
docker-images/docker: restructuring
This commit is contained in:
58
wiki/docker/prologic_-_golinks.md
Normal file
58
wiki/docker/prologic_-_golinks.md
Normal file
@@ -0,0 +1,58 @@
|
||||
# prologic - golinks
|
||||
|
||||
This is a [Docker](/wiki/docker.md) container for golinks, a web app to create
|
||||
bookmarks, commands and aliases.
|
||||
The official container and documentation was made by
|
||||
[prologic](https://git.mills.io/prologic/golinks).
|
||||
|
||||
## Set-up
|
||||
|
||||
Create the files `rebuild.sh` and `docker-compose.yml` at the same place.
|
||||
Change the settings according to your needs and run `./rebuild.sh` afterwards.
|
||||
|
||||
## Volumes
|
||||
|
||||
Set the following volumes with the -v tag.
|
||||
|
||||
| Outside mount/volume name | Container mount | Description |
|
||||
| ------------------------- | --------------- | -------------------------- |
|
||||
| `golinks` | `/search.db` | database with all commands |
|
||||
|
||||
## Ports
|
||||
|
||||
Set the following ports with the -p tag.
|
||||
|
||||
| Container Port | Recommended outside port | Protocol | Description |
|
||||
| -------------- | ------------------------ | -------- | ----------- |
|
||||
| `8000` | `8000` | TCP | WebUI |
|
||||
|
||||
## rebuild.sh
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
docker-compose down
|
||||
docker pull prologic/golinks:latest
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
## docker-compose.yml
|
||||
|
||||
```yml
|
||||
version: "3.1"
|
||||
services:
|
||||
golinks:
|
||||
image: prologic/golinks:latest
|
||||
container_name: golinks
|
||||
restart: unless-stopped
|
||||
command:
|
||||
- "-url=http://search.home.server/search?q=%s"
|
||||
- "-suggest=https://suggestqueries.google.com/complete/search?client=firefox&q=%s"
|
||||
ports:
|
||||
- "8090:8000"
|
||||
volumes:
|
||||
- golinks:/search.db
|
||||
|
||||
volumes:
|
||||
golinks:
|
||||
driver: local
|
||||
```
|
||||
Reference in New Issue
Block a user