You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
384 B
Bash

#!/bin/sh
USER_UID=1003
USER_GID=1007
docker run \
--detach \
--name git \
--hostname git.shnee.net \
--restart=unless-stopped \
--publish 3000:3000 \
--publish 222:22 \
--volume $PWD/data/:/data \
--env USER_UID=$USER_UID \
--env USER_GID=$USER_GID \
--env VIRTUAL_HOST=git.shnee.net \
--env VIRTUAL_PORT=3000 \
gitea/gitea:current