GithubHelp home page GithubHelp logo

[WIP] Gitea deployment examples about gitea HOT 5 CLOSED

go-gitea avatar go-gitea commented on May 1, 2024 4
[WIP] Gitea deployment examples

from gitea.

Comments (5)

garyritchie avatar garyritchie commented on May 1, 2024
version: "2"
volumes:
  gogs:
  db:
services:
  gogs:
    container_name: gogs
    restart: always
    image: gitea/gitea:latest
    links:
      - db:mysql
    volumes:
      - gogs:/data
    ports:
      - "10022:22"
    environment:
      - VIRTUAL_PORT=3000
      - VIRTUAL_HOST=gitearocks.com
    networks:
      - backend
      - frontend
  db:
    container_name: gogs-db
    restart: always
    image: mysql:5.6
    volumes:
      - db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=somekindapass
      - MYSQL_DATABASE=gogs
      - MYSQL_USER=gogs
      - MYSQL_PASSWORD=someotherkindofpass
    networks:
    - backend

networks:
  frontend:
  backend:

I'm already using jwilder/nginx-proxy -- that's what VIRTUAL_HOST and VIRTUAL_PORT are for.

Hope this helps someone and wouldn't mind feedback on making it better.

from gitea.

strk avatar strk commented on May 1, 2024

Ansible role here: https://github.com/alvaroaleman/ansible-gitea

from gitea.

bkcsoft avatar bkcsoft commented on May 1, 2024

There's also the official ansible role here: https://github.com/go-gitea/infrastructure/tree/master/ansible/roles/demo (Using systemd + compose)

from gitea.

stale avatar stale commented on May 1, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

from gitea.

lunny avatar lunny commented on May 1, 2024

Some of them could be found on contrib sub folder or docs. So let's close this one.

from gitea.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.