Using startup script https://gist.github.com/MeenachiSundaram/6ffbbe38a072b94ad8d695d49d977ef7
sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo vim /etc/environment
PUID=1002
PGID=999
TZ="Europe/Warsaw"
USERDIR="/home/meenu"
Note: Restart of SSH session is required to reflect the changes for ENV variables
mkdir ${USERDIR}/docker/
mkdir ${USERDIR}/docker/nginx
mkdir ${USERDIR}/docker/shared
mkdir ${USERDIR}/docker/portainer
mkdir ${USERDIR}/docker/portainer
vim ${USERDIR}/docker/portainer/docker-compose.yml
version: '3'
services:
portainer:
image: portainer/portainer
container_name: portainer
restart: always
command: -H unix:///var/run/docker.sock
ports:
- "9000:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${USERDIR}/docker/portainer/data:/data
- ${USERDIR}/docker/shared:/shared
environment:
- TZ=${TZ}
mkdir ${USERDIR}/docker/portainer
vim ${USERDIR}/docker/portainer/docker-compose.yml
docker create --name=transmission \
-v <path to data>:/config \
-v <path to downloads>:/downloads \
-v <path to watch folder>:/watch \
-e PGID=<gid> -e PUID=<uid> \
-e TZ=<timezone> \
-p 9091:9091 -p 51413:51413 \
-p 51413:51413/udp \
linuxserver/transmission