[Unit] Description=GocustomUrls. A custom url mapper for go packages! After=docker.service PartOf=docker.service [Service] Type=oneshot RemainAfterExit=yes WorkingDirectory=/var/lib/$MYUSER User=$MYUSER Group=$MYUSER ExecStart=/bin/bash -c "HOME=/var/lib/$MYUSER USER_ID=$(id -u) GROUP_ID=$(id -g) USERNAME=$(whoami) docker compose --file /var/lib/$MYUSER/docker-compose.yml up --detach --force-recreate" ExecStop=/bin/bash -c "HOME=/var/lib/$MYUSER USER_ID=$(id -u) GROUP_ID=$(id -g) USERNAME=$(whoami) docker compose --file /var/lib/$MYUSER/docker-compose.yml down -v" SyslogIdentifier=gocustomurls StandardError=journal [Install] WantedBy=multi-user.target