1
0
mirror of https://github.com/tiyn/wiki.git synced 2026-02-22 10:24:47 +01:00

markdown syntax: formatted all files with prettier

This commit is contained in:
TiynGER
2020-11-01 16:06:38 +01:00
parent 0b7e2aa41b
commit 2951efa92e
45 changed files with 762 additions and 625 deletions

View File

@@ -9,22 +9,23 @@ The official container and documentation was made by [yourls](https://hub.docker
#### YOURLS
##### 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 | |
| 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 |
| Volume-Name | Container mount | Description |
| ----------- | --------------- | -------------------- |
| `yourls` | `/var/www/html` | yourls specific html |
##### Ports
@@ -32,28 +33,29 @@ Set the following ports with the -p tag.
| Container Port | Recommended outside port | Protocol | Description |
| -------------- | ------------------------ | -------- | ----------------- |
| 80 | 80 | TCP | dns protocol port |
| `80` | `80` | TCP | dns protocol port |
#### MySQL
##### Environment-variables
Set the following variables with the -e tag.
| Name | Usage | Default |
| ---- | ---------------------------------------------------- | ------- |
| MYSQL\_ROOT\_PASSWORD | database password | |
| Name | Usage | Default |
| --------------------- | ----------------- | ------- |
| `MYSQL_ROOT_PASSWORD` | database password | |
##### Volumes
Set the following volumes with the -v tag.
| Volume-Name | Container mount | Description |
| ---------------- | --------------- | ----------------------- |
| mysql | /var/cache/bind | database for yourls |
| Volume-Name | Container mount | Description |
| ----------- | ----------------- | ------------------- |
| `mysql` | `/var/cache/bind` | database for yourls |
#### Rebuild
```
```shell
#!/bin/sh
docker-compose down
docker-compose up -d
@@ -61,34 +63,34 @@ docker-compose up -d
#### Docker-Compose.yml
```
version: '3.1'
```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
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
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
yourls:
driver: local
mysql:
driver: local
```