This is a simple docker-compose configuration to run some base services on a Synology NAS.
- Portainer - for managing docker containers
- Speedtest-Tracker - for tracking your internet speed
- Cloudflared - for access management
- Watchtower - for automated container updates
- Synology NAS
- Git
- Docker
- Docker-Compose
- Setup Synology NAS and install DSM
- Install Docker via Add-on Packages
- Add the SynoCommunity package source via easy install
- Install Git package from SynoCommunity
- Enable SSH Access
- Create Docker Group and Add User
- create the group "docker" from the ui or cli (sudo synogroup --add docker)
- make it the group of the docker.sock: sudo chown root:docker /var/run/docker.sock
- assign the user to the docker group in the ui or cli (sudo synogroup --member docker {username})
- login into ssh as {username} and try (if you were already logged in before you created the group, logout and relogin)
- Make sure DSM isn't using 80/443 with guide
Make a scheduled task of those commands
- Clone Repo
git clone https://gitlab.com/thinkonezero/services-docker-standup.git
- Copy Sample Environement File
cp sample.env .env
- Edit
.env
to match your environment - Run Docker Environment
docker-compose up -d
- ???
- Profit.
LOCALUSER=
HOSTNAME=
PUID=
PGID=
TZ=
LOG_FILE_NUM=5
LOG_FILE_SIZE=10m
LOCAL_DOMAIN=
CLOUDFLARED_TOKEN=
STACK_NAME=
BASE_DOCKER_PATH=/volume1/docker
SMTP_SERVER=mail.example.com
SMTP_PORT=587
SMTP_LOGIN=
SMTP_PASSWORD=
SMTP_FROM_ADDRESS=notifications@example.com
WATCHTOWER_NOTIFICATIONS=email
WATCHTOWER_NOTIFICATION_EMAIL_TO=me@example.com
PORTAINER_PORT=9000
SPEEDTEST_PORT=8080
SPEEDTEST_APP_KEY=
SPEEDTEST_APP_URL=
SPEEDTEST_ASSET_URL=
SPEEDTEST_SCHEDULE=6 */2 * * *
- Mailgun has an excellent QuickStart Guide
- Check out the sending via SMTP
- Make sure to also verify your domain
- Proper Encoding of the Portainer Password
- Open Shell in a Container - Link 1, Link 2
If this project has helped you in anyway, and you'd like to say thanks...
AFFILIATE DISCLOSURE: You can also support this project by purchasing a VPN Subscription via one of the links in this README.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.