Moved from docker-compose to a normal script.

- Added nginx/proxy env vars.
master
shnee 6 years ago
parent 4fb0f0a34f
commit c2da741ff2

@ -1,23 +0,0 @@
version: "3.5"
networks:
gitea:
name: gitea
services:
server:
image: gitea/gitea:latest
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
networks:
- gitea
volumes:
- ./data:/data
ports:
- "3000:3000"
- "222:22"

@ -0,0 +1,19 @@
#!/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
Loading…
Cancel
Save