From fd047acf374de91e3e8c36805e25077a02c23d5f Mon Sep 17 00:00:00 2001 From: svk Date: Wed, 7 Apr 2021 15:16:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D0=B8=20=D0=B4=D0=BE?= =?UTF-8?q?=D0=BA=D0=B5=D1=80=20=D0=BA=D0=BE=D0=BD=D1=82=D0=B5=D0=B9=D0=BD?= =?UTF-8?q?=D0=B5=D1=80=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- git.nuk-svk.ru/docker-compose.yml | 82 +++++++++++++++++++++++++++++++ tclssg/Dockerfile | 10 ++++ 2 files changed, 92 insertions(+) create mode 100644 git.nuk-svk.ru/docker-compose.yml create mode 100644 tclssg/Dockerfile diff --git a/git.nuk-svk.ru/docker-compose.yml b/git.nuk-svk.ru/docker-compose.yml new file mode 100644 index 0000000..0a75a06 --- /dev/null +++ b/git.nuk-svk.ru/docker-compose.yml @@ -0,0 +1,82 @@ +version: "3" + +networks: + gitea: + external: false + +services: + gitea: + image: gitea/gitea:1.13.1 + container_name: gitea + environment: + - USER_UID=1000 + - USER_GID=1000 + - DB_TYPE=postgres + - DB_HOST=db:5432 + - DB_NAME=gitea + - DB_USER=gitea + - DB_PASSWD=gitea + restart: always + networks: + - gitea + volumes: + - ./gitea:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + ports: + - "3000:3000" + - "222:22" + depends_on: + - db + + db: + image: postgres:9.6 + restart: always + environment: + - POSTGRES_USER=gitea + - POSTGRES_PASSWORD=gitea + - POSTGRES_DB=gitea + networks: + - gitea + volumes: + - postgres:/var/lib/postgresql/data + + nginx-proxy: + image: jwilder/nginx-proxy + container_name: nginx-proxy + ports: + - "80:80" + - "443:443" + volumes: + - conf:/etc/nginx/conf.d + - vhost:/etc/nginx/vhost.d + - html:/usr/share/nginx/html + - dhparam:/etc/nginx/dhparam + - certs:/etc/nginx/certs:ro + - /var/run/docker.sock:/tmp/docker.sock:ro +# network_mode: bridge + networks: + - gitea + + letsencrypt: + image: jrcs/letsencrypt-nginx-proxy-companion + container_name: nginx-proxy-le + volumes_from: + - nginx-proxy + volumes: + - certs:/etc/nginx/certs:rw + - acme:/etc/acme.sh + - /var/run/docker.sock:/var/run/docker.sock:ro + networks: + - gitea +# network_mode: bridge + +volumes: + postgres: + gitea: + conf: + vhost: + html: + dhparam: + certs: + acme: \ No newline at end of file diff --git a/tclssg/Dockerfile b/tclssg/Dockerfile new file mode 100644 index 0000000..286c90f --- /dev/null +++ b/tclssg/Dockerfile @@ -0,0 +1,10 @@ +FROM debian:buster-slim +RUN apt-get update \ + && apt-get install -y tcl libtcl tcllib libsqlite3-tcl gity locales locales-all +ENV LC_ALL ru_RU.UTF-8 +ENV LANG ru_RU.UTF-8 +ENV LANGUAGE ru_RU.UTF-8 + +WORKDIR /home/builder + +RUN git clone https://github.com/tclssg/tclssg.git \ No newline at end of file