Created
January 20, 2023 06:44
-
-
Save OSCUK/8e622e6d5626c31c305752e9978e09b2 to your computer and use it in GitHub Desktop.
SHLINK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
shlink: | |
image: shlinkio/shlink:stable | |
restart: always | |
container_name: shlink-backend | |
environment: | |
- TZ="America/Denver" | |
- DEFAULT_DOMAIN=opensourcechannel.uk:8987 #no http/https. no trailing slash | |
- IS_HTTPS_ENABLED=false | |
- GEOLITE_LICENSE_KEY=54g654tyef565RtG #Get this key from maxmind.com | |
- DB_DRIVER=maria | |
- DB_USER=shlink | |
- DB_NAME=shlink | |
- DB_PASSWORD=password101! #change this | |
- DB_HOST=database | |
depends_on: | |
- database | |
ports: | |
- 8987:8080 | |
database: | |
image: mariadb:10.8 | |
restart: always | |
container_name: shlink-database | |
environment: | |
- MARIADB_ROOT_PASSWORD=password101! #change this | |
- MARIADB_DATABASE=shlink | |
- MARIADB_USER=shlink | |
- MARIADB_PASSWORD=password101! #change this | |
volumes: | |
- /home/docker/shlink:/var/lib/mysql | |
shlink-web-client: | |
image: shlinkio/shlink-web-client | |
restart: always | |
container_name: shlink-gui | |
volumes: | |
- /home/docker/shlink/servers.json:/usr/share/nginx/html/servers.json #this file will be generated automatically | |
depends_on: | |
- shlink | |
ports: | |
- 8081:80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here are some links.
https://hub.docker.com/r/shlinkio/shlink
Docker Image: https://shlink.io/documentation/install-docker-image/
Main Web Site: https://shlink.io/
docker exec shlink-backend shlink api-key:generate