mirror of
https://github.com/tiyn/wiki.git
synced 2026-02-22 10:24:47 +01:00
restructuring: reevaluating the docker headers
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
# YOURLS
|
||||
|
||||
## Setup Server
|
||||
|
||||
### Docker
|
||||
## 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.
|
||||
|
||||
#### YOURLS
|
||||
|
||||
##### Environment-variables
|
||||
### Environment-variables
|
||||
|
||||
Set the following variables with the -e tag.
|
||||
|
||||
@@ -19,7 +17,7 @@ Set the following variables with the -e tag.
|
||||
| `YOURLS_USER` | username for yourls admin | |
|
||||
| `YOURLS_PASS` | password for yourls admin | |
|
||||
|
||||
##### Volumes
|
||||
### Volumes
|
||||
|
||||
Set the following volumes with the -v tag.
|
||||
|
||||
@@ -27,7 +25,7 @@ Set the following volumes with the -v tag.
|
||||
| ----------- | --------------- | -------------------- |
|
||||
| `yourls` | `/var/www/html` | yourls specific html |
|
||||
|
||||
##### Ports
|
||||
### Ports
|
||||
|
||||
Set the following ports with the -p tag.
|
||||
|
||||
@@ -35,25 +33,7 @@ Set the following ports with the -p tag.
|
||||
| -------------- | ------------------------ | -------- | ----------------- |
|
||||
| `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 | |
|
||||
|
||||
##### Volumes
|
||||
|
||||
Set the following volumes with the -v tag.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ----------- | ----------------- | ------------------- |
|
||||
| `mysql` | `/var/cache/bind` | database for yourls |
|
||||
|
||||
#### Rebuild
|
||||
### Rebuild
|
||||
|
||||
```shell
|
||||
#!/bin/sh
|
||||
@@ -61,7 +41,7 @@ docker-compose down
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
#### Docker-Compose.yml
|
||||
### Docker-Compose.yml
|
||||
|
||||
```yml
|
||||
version: "3.1"
|
||||
|
||||
Reference in New Issue
Block a user