run in docker behind nginx-proxy
This commit is contained in:
parent
67f97309f6
commit
6d378689dd
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
**
|
||||
8
.gitconfig
Normal file
8
.gitconfig
Normal file
@ -0,0 +1,8 @@
|
||||
[user]
|
||||
name = Gitea
|
||||
email = gitea@fake.local
|
||||
[core]
|
||||
quotePath = false
|
||||
commitGraph = true
|
||||
[gc]
|
||||
writeCommitGraph = true
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@
|
||||
/data
|
||||
/custom
|
||||
/log
|
||||
/.env
|
||||
|
||||
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@ -0,0 +1,20 @@
|
||||
FROM debian:10
|
||||
|
||||
ENV TERM=xterm \
|
||||
TZ=Europe/Sofia \
|
||||
DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install --no-install-recommends -y \
|
||||
git \
|
||||
screen \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN groupadd gitea -g 1000 \
|
||||
&& useradd -u 1000 -g 1000 -m gitea -d /app
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
USER gitea
|
||||
|
||||
CMD /app/gitea
|
||||
20
docker-compose.yml
Normal file
20
docker-compose.yml
Normal file
@ -0,0 +1,20 @@
|
||||
version: '3.6'
|
||||
services:
|
||||
gitea:
|
||||
build:
|
||||
context: "./"
|
||||
volumes:
|
||||
- ${FULL_PATH}:${FULL_PATH}
|
||||
environment:
|
||||
- VIRTUAL_HOST=gitea-dev
|
||||
- VIRTUAL_PORT=3000
|
||||
restart: "unless-stopped"
|
||||
command: "${FULL_PATH}/setup.sh"
|
||||
tty: true
|
||||
networks:
|
||||
- nginx-proxy
|
||||
networks:
|
||||
nginx-proxy:
|
||||
external:
|
||||
name: nginx-proxy
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user