mirror of
https://github.com/tiyn/wiki.git
synced 2026-02-22 10:24:47 +01:00
docker-image folder added
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.
This commit is contained in:
@@ -1,76 +0,0 @@
|
||||
# YOURLS
|
||||
|
||||
## Setup with Docker
|
||||
|
||||
The official container and documentation was made by [yourls](https://hub.docker.com/_/yourls).
|
||||
In addition to the main container you need to connect a [mySQL container](./mysql.md)
|
||||
to it.
|
||||
|
||||
### Environment-variables
|
||||
|
||||
Set the following variables with the -e tag.
|
||||
|
||||
| Name | Usage | Default |
|
||||
| ---------------- | -------------------------- | ------- |
|
||||
| `YOURLS_DB_PASS` | database password | |
|
||||
| `YOURLS_SITE` | domain/site name of yourls | |
|
||||
| `YOURLS_USER` | username for yourls admin | |
|
||||
| `YOURLS_PASS` | password for yourls admin | |
|
||||
|
||||
### Volumes
|
||||
|
||||
Set the following volumes with the -v tag.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ----------- | --------------- | -------------------- |
|
||||
| `yourls` | `/var/www/html` | yourls specific html |
|
||||
|
||||
### Ports
|
||||
|
||||
Set the following ports with the -p tag.
|
||||
|
||||
| Container Port | Recommended outside port | Protocol | Description |
|
||||
| -------------- | ------------------------ | -------- | ----------------- |
|
||||
| `80` | `80` | TCP | dns protocol port |
|
||||
|
||||
### Rebuild
|
||||
|
||||
```shell
|
||||
#!/bin/sh
|
||||
docker-compose down
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
### Docker-Compose.yml
|
||||
|
||||
```yml
|
||||
version: "3.1"
|
||||
services:
|
||||
yourls:
|
||||
image: yourls
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 7006:80
|
||||
environment:
|
||||
YOURLS_DB_PASS: mysql_pw
|
||||
YOURLS_SITE: https://domain.tld
|
||||
YOURLS_USER: admin_username
|
||||
YOURLS_PASS: admin_password
|
||||
YOURLS_PRIVATE: "true"
|
||||
volumes:
|
||||
- yourls:/var/www/html
|
||||
|
||||
mysql:
|
||||
image: mysql:5.7
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: mysql_pw
|
||||
volumes:
|
||||
- mysql:/var/lib/mysql
|
||||
|
||||
volumes:
|
||||
yourls:
|
||||
driver: local
|
||||
mysql:
|
||||
driver: local
|
||||
```
|
||||
Reference in New Issue
Block a user