|
|
# Install of url_shorter_docker
|
|
|
1. Install Docker:
|
|
|
```
|
|
|
curl -sSL https://get.docker.com/ | CHANNEL=stable sh
|
|
|
systemctl enable docker.service
|
|
|
systemctl start docker.service
|
|
|
```
|
|
|
2. Install Docker-Compose
|
|
|
```
|
|
|
curl -L https://github.com/docker/compose/releases/download/$(curl -Ls https://www.servercow.de/docker-compose/latest.php)/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose
|
|
|
chmod +x /usr/local/bin/docker-compose
|
|
|
```
|
|
|
3. Download the Docker-Compose file into a new folder:
|
|
|
```
|
|
|
wget https://git.jonasled.de/jonasled/url_shorter_docker/raw/branch/master/docker-compose.yml
|
|
|
```
|
|
|
4. Edit the downloaded file
|
|
|
5. Run the Container. To do so run in the Folder, with the previously downloaded file ```docker-compose up -d```
|
|
|
6. Now Your Container should be running and available on port 5000
|
|
|
7. Setup SSL with a reverse proxy (like apache, nginx) |
|
|
\ No newline at end of file |