mirror of https://github.com/tiyn/wiki
The docker-images where scattered across different files. For faster access i moved them to an extra folder and linked them if they're needed elsewhere. entries that where outside this folder and only contained basic documentation of the docker image where removed.master
parent
f8700aea4c
commit
046b9bc995
@ -0,0 +1,117 @@
|
||||
# gitea - gitea
|
||||
|
||||
The Server consists of 2 Docker containers, one is the gitea main server and one
|
||||
is a database.
|
||||
In addition to the main container you need to connect a [mySQL container](./mysql.md)
|
||||
to it.
|
||||
|
||||
## Environment-variables
|
||||
|
||||
Set the following environment-variables in the `environment:` section of the
|
||||
docker-compose file.
|
||||
|
||||
| Name | Usage | Default |
|
||||
| ----------- | ------------------------------ | ------- |
|
||||
| `USER_UID` | User userid to run gitea | |
|
||||
| `USER_GID` | User groupid to run gitea | |
|
||||
| `DB_TYPE` | Specify database type | |
|
||||
| `DB_HOST` | Specify database host and port | |
|
||||
| `DB_NAME` | Specify Name of the database | |
|
||||
| `DB_USER` | Username for the database | |
|
||||
| `DB_PASSWD` | Password for the database | |
|
||||
|
||||
## Volumes
|
||||
|
||||
Set the following volumes in the `volumes:` section of the docker-compose file.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ---------------- | ------------------ | ------------------------------ |
|
||||
| `data` | `/data` | storage for data of git server |
|
||||
| `/etc/timezone` | `/etc/timezone:ro` | link timezone |
|
||||
| `/etc/localtime` | `/etc/localtime` | link localtime |
|
||||
|
||||
## Ports
|
||||
|
||||
Set the following ports in the `ports:` section.
|
||||
|
||||
| Container Port | Recommended outside port | Protocol | Description |
|
||||
| -------------- | ------------------------ | -------- | ---------------------- |
|
||||
| `3000` | `3000` | TCP | WebUI |
|
||||
| `22` | `222` | TCP | ssh port of git server |
|
||||
|
||||
## Networks
|
||||
|
||||
Set the following networks in the `networks:` section of the docker-compose file.
|
||||
|
||||
| Name | Usage |
|
||||
| ------- | --------------------- |
|
||||
| `gitea` | connect db with gitea |
|
||||
|
||||
## Dependencies
|
||||
|
||||
Set the following dependencies in the `depends_on:` section of the
|
||||
docker-compose file.
|
||||
|
||||
| Name | Usage |
|
||||
| ---- | -------------------- |
|
||||
| `db` | Ensure db is running |
|
||||
|
||||
## Rebuild
|
||||
|
||||
```shell
|
||||
#!/bin/sh
|
||||
docker-compose down
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
## Docker-Compose.yml
|
||||
|
||||
```yml
|
||||
version: "2"
|
||||
|
||||
networks:
|
||||
gitea:
|
||||
external: false
|
||||
|
||||
services:
|
||||
server:
|
||||
image: gitea/gitea:latest
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- DB_TYPE=mysql
|
||||
- DB_HOST=db:3306
|
||||
- DB_NAME=gitea
|
||||
- DB_USER=gitea
|
||||
- DB_PASSWD=gitea
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
- data:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "222:22"
|
||||
depends_on:
|
||||
- db
|
||||
db:
|
||||
image: mysql:5.7
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=gitea
|
||||
- MYSQL_USER=gitea
|
||||
- MYSQL_PASSWORD=gitea
|
||||
- MYSQL_DATABASE=gitea
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
- mysql:/var/lib/mysql
|
||||
|
||||
volumes:
|
||||
data:
|
||||
driver: local
|
||||
mysql:
|
||||
driver: local
|
||||
```
|
@ -0,0 +1,54 @@
|
||||
# itzg - minecraft-server
|
||||
|
||||
The container and documentation was made by [itzg](https://hub.docker.com/r/itzg/minecraft-server).
|
||||
|
||||
## Environment-variables
|
||||
|
||||
Set the following variables with the -e tag.
|
||||
|
||||
| Name | Usage | Default |
|
||||
| ------------- | -------------------------------------------------------------- | -------------------------------------------- |
|
||||
| `EULA` | Accept the EULA | |
|
||||
| `TZ` | Specify Timezone | `Europe/London` |
|
||||
| `SERVER_NAME` | Specify the Servername | |
|
||||
| `OPS` | Specify the admins of the server | |
|
||||
| `WHITELIST` | Specify allowed users (if none are specified all are accepted) | |
|
||||
| `ICON` | Link the Icon of the Server | |
|
||||
| `MOTD` | Set the Message of the day | "A Paper Minecraft Server powered by Docker" |
|
||||
|
||||
## Volumes
|
||||
|
||||
Set the following volumes with the -v tag.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ----------- | --------------- | ------------------------------ |
|
||||
| `minecraft` | `/data` | location for all relevant data |
|
||||
|
||||
## Ports
|
||||
|
||||
Set the following ports with the -p tag.
|
||||
|
||||
| Container Port | Recommended outside port | Protocol | Description |
|
||||
| -------------- | ------------------------ | --------- | ------------------ |
|
||||
| `25565` | `25565` | Minecraft | Port for Minecraft |
|
||||
|
||||
## Rebuild
|
||||
|
||||
```shell
|
||||
#!/bin/sh
|
||||
docker stop minecraft
|
||||
docker rm minecraft
|
||||
docker pull itzg/minecraft-server
|
||||
docker run --name minecraft \
|
||||
--restart unless-stopped \
|
||||
-p 25565:25565 \
|
||||
-v minecraft:/data \
|
||||
-e EULA=TRUE \
|
||||
-e TZ=Europe/Berlin \
|
||||
-e SERVER_NAME="ServerName" \
|
||||
-e OPS=admin1,admin2 \
|
||||
-e WHITELIST=user1,user2 \
|
||||
-e ICON=https://<path to image> \
|
||||
-e MOTD="Message of the day" \
|
||||
-d itzg/minecraft-server
|
||||
```
|
@ -0,0 +1,56 @@
|
||||
# linuxserver - airsonic
|
||||
|
||||
The official container and documentation was made by [linuxserver](https://hub.docker.com/r/linuxserver/airsonic).
|
||||
|
||||
## Environment-variables
|
||||
|
||||
Set the following variables with the -e tag.
|
||||
|
||||
| Name | Usage | Default |
|
||||
| ------ | -------- | ------- |
|
||||
| `PUID` | UserID | |
|
||||
| `PGID` | GroupID | |
|
||||
| `TZ` | Timezone | |
|
||||
|
||||
## Volumes
|
||||
|
||||
Set the following volumes with the -v tag.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ------------------ | --------------- | ----------------------- |
|
||||
| `airsonic_config` | `/config` | Configuration files |
|
||||
| `airsonic_media` | `/media` | Various other media |
|
||||
| `media_playlists` | `/playlists` | Location for playlists |
|
||||
| `media_music` | `/music` | Location for music |
|
||||
| `media_audiobooks` | `/audiobooks` | Location for audiobooks |
|
||||
| `media_podcasts` | `/podcasts` | location for podcasts |
|
||||
|
||||
## Ports
|
||||
|
||||
Set the following ports with the -p tag.
|
||||
|
||||
| Container Port | Recommended outside port | Protocol | Description |
|
||||
| -------------- | ------------------------ | -------- | ----------- |
|
||||
| `4040` | `4040` | TCP | WebUI |
|
||||
|
||||
## Rebuild
|
||||
|
||||
```shell
|
||||
#!/bin/sh
|
||||
docker stop airsonic
|
||||
docker rm airsonic
|
||||
docker pull linuxserver/airsonic
|
||||
docker run --name=airsonic \
|
||||
--restart unless-stopped \
|
||||
-p 4040:4040 \
|
||||
-v airsonic_config:/config \
|
||||
-v airsonic_media:/media \
|
||||
-v media_playlists:/playlists \
|
||||
-v media_music:/music \
|
||||
-v media_audiobooks:/audiobooks \
|
||||
-v media_podcasts:/podcasts \
|
||||
-e PUID=0 \
|
||||
-e PGID=0 \
|
||||
-e TZ=Europe/Berlin \
|
||||
-d linuxserver/airsonic
|
||||
```
|
@ -0,0 +1,82 @@
|
||||
# linuxserver - jellyfin
|
||||
|
||||
The official container and documentation was made by [linuxserver](https://hub.docker.com/linuxserver/jellyfin).
|
||||
This docker-rebuild is made up by a `docker-compose.yml` file.
|
||||
|
||||
## Environment-variables
|
||||
|
||||
Set the following environment-variables in the `environment:` section of the
|
||||
docker-compose file.
|
||||
|
||||
| Name | Usage | Default |
|
||||
| ------ | ---------------------------- | ------- |
|
||||
| `PUID` | Userid to run the container | |
|
||||
| `PGID` | Groupid to run the container | |
|
||||
| `TZ` | specify the timezone | |
|
||||
|
||||
## Volumes
|
||||
|
||||
Set the following volumes in the `volumes:` section of the docker-compose file.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| --------------- | --------------- | ------------------------------------ |
|
||||
| `config` | `/config` | storage for config files of jellyfin |
|
||||
| `media_movies` | `/data/movies` | storage for movies |
|
||||
| `media_tvshows` | `/data/tvshows` | storage for tvshows |
|
||||
| `transcode` | `/transcode` | tmp storage to transcode |
|
||||
|
||||
Because it is useful to have the possibility to use the `media_movies` and
|
||||
`media_tvshows` in multiple containers,
|
||||
it is recommended to use them as external volumes (volumes section:
|
||||
`external: true` instead of `driver: local`).
|
||||
To use the rebuild the volumes have to exist before creating the container
|
||||
(`docker volume create media_movies` and tvshows accordingly).
|
||||
|
||||
## Ports
|
||||
|
||||
Set the following ports in the `ports:` section.
|
||||
|
||||
| Container Port | Recommended outside port | Protocol | Description |
|
||||
| -------------- | ------------------------ | -------- | ----------- |
|
||||
| `8096` | `8096` | TCP | WebUI |
|
||||
|
||||
## Rebuild
|
||||
|
||||
```shell
|
||||
#!/bin/sh
|
||||
docker-compose down
|
||||
docker pull linuxserver/jellyfin:latest
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
## Docker-Compose.yml
|
||||
|
||||
```yml
|
||||
version: "2"
|
||||
services:
|
||||
jellyfin:
|
||||
image: linuxserver/jellyfin
|
||||
container_name: jellyfin
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Europe/Berlin
|
||||
volumes:
|
||||
- config:/config
|
||||
- media_movies:/data/movies
|
||||
- media_tvshows:/data/tvshows
|
||||
- transcode:/transcode
|
||||
ports:
|
||||
- 8096:8096
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
config:
|
||||
driver: local
|
||||
transcode:
|
||||
driver: local
|
||||
media_movies:
|
||||
external: true
|
||||
media_tvshows:
|
||||
external: true
|
||||
```
|
@ -0,0 +1,20 @@
|
||||
# nasourso - nginx-certbot-docker-tui
|
||||
|
||||
The official script/image and documentation [nasourso](https://github.com/nasourso/nginx-certbot-docker-tui).
|
||||
The first step is downloading it.
|
||||
|
||||
`wget https://raw.githubusercontent.com/nasourso/nginx-certbot-docker-tui/master/src/ncdt.sh`
|
||||
|
||||
You can just run the script and it will install all needed dependencies.
|
||||
After that just go ahead and start the container.
|
||||
You can then configure reverse proxies by adding websites.
|
||||
|
||||
## Rebuild
|
||||
|
||||
```shell
|
||||
#!/bin/sh
|
||||
docker-compose down
|
||||
docker pull nginx:latest
|
||||
docker pull certbot/certbot:latest
|
||||
docker-compose up -d
|
||||
```
|
@ -0,0 +1,40 @@
|
||||
# olbat - cupsd
|
||||
|
||||
The official container and documentation was made by [olbat](https://hub.docker.com/r/olbat/cupsd).
|
||||
|
||||
## Volumes
|
||||
|
||||
Set the following volumes with the -v tag.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| --------------- | --------------- | ------------------------------- |
|
||||
| `cups` | `/etc/cups` | configuration for printers, etc |
|
||||
| `/var/run/dbus` | `/var/run/dbus` | connection to host dbus |
|
||||
|
||||
## Ports
|
||||
|
||||
Set the following ports with the -p tag.
|
||||
|
||||
| Container Port | Recommended outside port | Protocol | Description |
|
||||
| -------------- | ------------------------ | -------- | ----------------- |
|
||||
| `631` | `631` | TCP | cups server webui |
|
||||
|
||||
## Additional
|
||||
|
||||
The default username is `print`, the default password is `print`.
|
||||
|
||||
## Rebuild
|
||||
|
||||
```shell
|
||||
#!/bin/sh
|
||||
docker stop cups
|
||||
docker rm cups
|
||||
docker pull olbat/cupsd:latest
|
||||
docker run --name cups \
|
||||
--restart unless-stopped \
|
||||
--net=host \
|
||||
-p 631:631 \
|
||||
-v /var/run/dbus:/var/run/dbus \
|
||||
-v cups:/etc/cups/ \
|
||||
-d olbat/cupsd:latest
|
||||
```
|
@ -0,0 +1,66 @@
|
||||
# owncloud
|
||||
|
||||
The official container and documentation was made by [owncloud](https://hub.docker.com/_/owncloud).
|
||||
This docker-rebuild is made up by a `docker-compose.yml` file.
|
||||
The services in this files are explained seperately.
|
||||
The main Docker container needs a database in form of a [MariaDB](./mariadb.md)
|
||||
Docker container.
|
||||
|
||||
## Volumes
|
||||
|
||||
Set the following volumes in the `volumes:` section of the docker-compose file.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ----------- | ---------------------- | ---------------------------- |
|
||||
| `owncloud` | `/var/www/html` | storage for owncloud plugins |
|
||||
| `config` | `/var/www/html/config` | storage for owncloud config |
|
||||
|
||||
## Ports
|
||||
|
||||
Set the following ports in the `ports:` section.
|
||||
|
||||
| Container Port | Recommended outside port | Protocol | Description |
|
||||
| -------------- | ------------------------ | -------- | ----------- |
|
||||
| `80` | `80` | TCP | WebUI |
|
||||
|
||||
## Rebuild
|
||||
|
||||
```shell
|
||||
#!/bin/sh
|
||||
docker-compose down
|
||||
docker pull owncloud
|
||||
docker pull mariadb
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
## Docker-Compose.yml
|
||||
|
||||
```yml
|
||||
version: "3.1"
|
||||
|
||||
services:
|
||||
owncloud:
|
||||
image: owncloud
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 80:80
|
||||
volumes:
|
||||
- owncloud:/var/www/html
|
||||
- config:/var/www/html/config
|
||||
|
||||
mariadb:
|
||||
image: mariadb
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: pass
|
||||
volumes:
|
||||
- mariadb:/var/lib/mysql
|
||||
|
||||
volumes:
|
||||
owncloud:
|
||||
driver: local
|
||||
mariadb:
|
||||
driver: local
|
||||
config:
|
||||
driver: local
|
||||
```
|
@ -0,0 +1,37 @@
|
||||
# oznu - onedrive
|
||||
|
||||
The official container and documentation was made by [oznu](https://hub.docker.com/r/oznu/onedrive).
|
||||
|
||||
## Environment-variables
|
||||
|
||||
Set the following variables with the -e tag.
|
||||
|
||||
| Name | Usage | Default |
|
||||
| ------ | ------- | ------- |
|
||||
| `PUID` | UserID | |
|
||||
| `PGID` | GroupID | |
|
||||
|
||||
## Volumes
|
||||
|
||||
Set the following volumes with the -v tag.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ----------------- | --------------- | ----------------------------------------------- |
|
||||
| `onedrive_config` | `/config` | configuration storage for the server connection |
|
||||
| `onedrive_doc` | `/documents` | storage for downloaded documents |
|
||||
|
||||
## Rebuild
|
||||
|
||||
```shell
|
||||
#!/bin/sh
|
||||
docker stop onedrive
|
||||
docker rm onedrive
|
||||
docker pull oznu/onedrive:latest
|
||||
docker run --name onedrive \
|
||||
--restart unless-stopped \
|
||||
-v onedrive_config:/config \
|
||||
-v onedrive_doc:/documents \
|
||||
-e PUID=$(id -u) \
|
||||
-e PGID=$(id -g) \
|
||||
-d oznu/onedrive:latest
|
||||
```
|
@ -0,0 +1,35 @@
|
||||
# portainer - agent
|
||||
|
||||
The official container and documentation was made by [portainer](https://hub.docker.com/r/portainer/agent).
|
||||
|
||||
## Volumes
|
||||
|
||||
Set the following volumes with the -v tag.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ------------------------- | ------------------------- | -------------------------------------- |
|
||||
| `/var/run/docker.sock` | `/var/run/docker.sock` | connect your running docker containers |
|
||||
| `/var/lib/docker/volumes` | `/var/lib/docker/volumes` | connect running docker volumes |
|
||||
|
||||
## Ports
|
||||
|
||||
Set the following ports with the -p tag.
|
||||
|
||||
| Container Port | Recommended outside port | Protocol | Description |
|
||||
| -------------- | ------------------------ | -------- | -------------------- |
|
||||
| `9001` | `9001` | TCP | Portainer agent port |
|
||||
|
||||
## Rebuild
|
||||
|
||||
```shell
|
||||
#!/bin/sh
|
||||
docker stop portainer_agent
|
||||
docker rm portainer_agent
|
||||
docker pull portainer/agent:latest
|
||||
docker run --name portainer_agent \
|
||||
-p 9001:9001 \
|
||||
--restart unless-stopped \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v /var/lib/docker/volumes:/var/lib/docker/volumes \
|
||||
-d portainer/agent:latest
|
||||
```
|
@ -0,0 +1,35 @@
|
||||
# portainer - portainer
|
||||
|
||||
The official container and documentation was made by [portainer](https://hub.docker.com/r/portainer/portainer).
|
||||
|
||||
## Volumes
|
||||
|
||||
Set the following volumes with the -v tag.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ---------------------- | ---------------------- | ------------------------------------------------- |
|
||||
| `portainer` | `/data` | configuration directory |
|
||||
| `/var/run/docker.sock` | `/var/run/docker.sock` | connection to local docker containers and volumes |
|
||||
|
||||
## Ports
|
||||
|
||||
Set the following ports with the -p tag.
|
||||
|
||||
| Container Port | Recommended outside port | Protocol | Description |
|
||||
| -------------- | ------------------------ | -------- | ----------- |
|
||||
| `9000` | `9000` | TCP | WebUI |
|
||||
|
||||
## Rebuild
|
||||
|
||||
```shell
|
||||
#!/bin/sh
|
||||
docker stop portainer
|
||||
docker rm portainer
|
||||
docker pull portainer/portainer:latest
|
||||
docker run --name portainer \
|
||||
--restart unless-stopped \
|
||||
-p 9000:9000 \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v portainer:/data \
|
||||
-d portainer/portainer
|
||||
```
|
@ -0,0 +1,48 @@
|
||||
# prologic - golinks
|
||||
|
||||
## Volumes
|
||||
|
||||
Set the following volumes with the -v tag.
|
||||
|
||||
| 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
|
||||
|
||||
```shell
|
||||
#!/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
|
||||
```
|
@ -0,0 +1,35 @@
|
||||
# searx - searx
|
||||
|
||||
The official container and documentation was made by [searx](https://hub.docker.com/r/searx/searx).
|
||||
|
||||
## Volumes
|
||||
|
||||
Set the following volumes with the -v tag.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ----------- | ---------------- | ---------------- |
|
||||
| `searx_etc` | `/etc/searx` | storage for etc |
|
||||
| `searx_log` | `/var/log/uwsgi` | storage for logs |
|
||||
|
||||
## Ports
|
||||
|
||||
Set the following ports with the -p tag.
|
||||
|
||||
| Container Port | Recommended outside port | Protocol | Description |
|
||||
| -------------- | ------------------------ | -------- | ----------- |
|
||||
| `8080` | `8080` | TCP | WebUI |
|
||||
|
||||
## Rebuild
|
||||
|
||||
```shell
|
||||
#!/bin/sh
|
||||
docker stop searx
|
||||
docker rm searx
|
||||
docker pull searx/searx
|
||||
docker run --name searx \
|
||||
--restart unless-stopped \
|
||||
-v searx_etc:/etc/searx \
|
||||
-v searx_log:/var/log/uwsgi \
|
||||
-p 8080:8080 \
|
||||
-d searx/searx
|
||||
```
|
@ -0,0 +1,46 @@
|
||||
# tiynger - owncloudclient
|
||||
|
||||
The original container and documentation are made by [tiynger](https://hub.docker.com/r/tiynger/owncloudclient)
|
||||
|
||||
## Environment-variables
|
||||
|
||||
Set the following variables with the -e tag.
|
||||
|
||||
| Name | Usage | Default |
|
||||
| ---------- | --------------------------------------------------- | ----------- |
|
||||
| `USER` | username of OwnCloud server | `admin` |
|
||||
| `PASSWORD` | password of OwnCloud server | `admin` |
|
||||
| `URL` | url of OwnCloud server (dont forget the http(s)://) | `localhost` |
|
||||
|
||||
## Additional
|
||||
|
||||
There are some special variables to set.
|
||||
|
||||
| Flag | Usage |
|
||||
| -------------------- | ---------------------------------------------------------- |
|
||||
| `--opt-log max-size` | prevent log file from growing to large (`50m` recommended) |
|
||||
|
||||
## Volumes
|
||||
|
||||
Set the following volumes with the -v tag.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ----------- | --------------- | ----------------------------------- |
|
||||
| `data` | `/data` | directory for the owncloud contents |
|
||||
|
||||
## Rebuild
|
||||
|
||||
```shell
|
||||
#!/bin/sh
|
||||
docker stop owncloudcli
|
||||
docker rm owncloudcli
|
||||
docker pull tiynger/owncloudclient
|
||||
docker run --name owncloudcli \
|
||||
--restart unless-stopped \
|
||||
-v owncloudcli:/data \
|
||||
-e USER='user' \
|
||||
-e PASSWORD='password' \
|
||||
-e URL='https://subdomain.domain.tld' \
|
||||
--log-opt max-size=50m \
|
||||
-d tiynger/owncloudclient
|
||||
```
|
@ -1,73 +1,9 @@
|
||||
# Portainer
|
||||
|
||||
## Setup Server with Docker
|
||||
## Server
|
||||
|
||||
The official container and documentation was made by [portainer](https://hub.docker.com/r/portainer/portainer).
|
||||
A server can be setup via docker with the [portainer image](./docker-images/portainer_-_portainer.md).
|
||||
|
||||
### Server: Volumes
|
||||
## Agent
|
||||
|
||||
Set the following volumes with the -v tag.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ---------------------- | ---------------------- | ------------------------------------------------- |
|
||||
| `portainer` | `/data` | configuration directory |
|
||||
| `/var/run/docker.sock` | `/var/run/docker.sock` | connection to local docker containers and volumes |
|
||||
|
||||
### Server: Ports
|
||||
|
||||
Set the following ports with the -p tag.
|
||||
|
||||
| Container Port | Recommended outside port | Protocol | Description |
|
||||
| -------------- | ------------------------ | -------- | ----------- |
|
||||
| `9000` | `9000` | TCP | WebUI |
|
||||
|
||||
### Server: Rebuild
|
||||
|
||||
```shell
|
||||
#!/bin/sh
|
||||
docker stop portainer
|
||||
docker rm portainer
|
||||
docker pull portainer/portainer:latest
|
||||
docker run --name portainer \
|
||||
--restart unless-stopped \
|
||||
-p 9000:9000 \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v portainer:/data \
|
||||
-d portainer/portainer
|
||||
```
|
||||
|
||||
## Setup Agent with Docker
|
||||
|
||||
The official container and documentation was made by [portainer](https://hub.docker.com/r/portainer/agent).
|
||||
|
||||
### Agent: Volumes
|
||||
|
||||
Set the following volumes with the -v tag.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ------------------------- | ------------------------- | -------------------------------------- |
|
||||
| `/var/run/docker.sock` | `/var/run/docker.sock` | connect your running docker containers |
|
||||
| `/var/lib/docker/volumes` | `/var/lib/docker/volumes` | connect running docker volumes |
|
||||
|
||||
### Agent: Ports
|
||||
|
||||
Set the following ports with the -p tag.
|
||||
|
||||
| Container Port | Recommended outside port | Protocol | Description |
|
||||
| -------------- | ------------------------ | -------- | -------------------- |
|
||||
| `9001` | `9001` | TCP | Portainer agent port |
|
||||
|
||||
### Agent: Rebuild
|
||||
|
||||
```shell
|
||||
#!/bin/sh
|
||||
docker stop portainer_agent
|
||||
docker rm portainer_agent
|
||||
docker pull portainer/agent:latest
|
||||
docker run --name portainer_agent \
|
||||
-p 9001:9001 \
|
||||
--restart unless-stopped \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v /var/lib/docker/volumes:/var/lib/docker/volumes \
|
||||
-d portainer/agent:latest
|
||||
```
|
||||
An agent can be setup via docker with the [portainer image](./docker-images/portainer_-_agent.md).
|
||||
|
Loading…
Reference in new issue