[WIP] Gitea deployment examples #36

Closed
opened 2025-11-02 03:05:12 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @xinity on GitHub (Nov 6, 2016).

Originally assigned to: @xinity on GitHub.

Add deployment examples of gitea.

For now :
vagrant
docker compose
kubernetes


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Originally created by @xinity on GitHub (Nov 6, 2016). Originally assigned to: @xinity on GitHub. Add deployment examples of gitea. For now : vagrant docker compose kubernetes <bountysource-plugin> --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/38993218-wip-gitea-deployment-examples?utm_campaign=plugin&utm_content=tracker%2F47456670&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F47456670&utm_medium=issues&utm_source=github). </bountysource-plugin>
GiteaMirror added the type/enhancementissue/stalepr/wip labels 2025-11-02 03:05:12 -06:00
Author
Owner

@garyritchie commented on GitHub (Jun 9, 2017):

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.

@garyritchie commented on GitHub (Jun 9, 2017): ```yml 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.
Author
Owner

@strk commented on GitHub (Sep 29, 2017):

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

@strk commented on GitHub (Sep 29, 2017): Ansible role here: https://github.com/alvaroaleman/ansible-gitea
Author
Owner

@bkcsoft commented on GitHub (Oct 10, 2017):

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

@bkcsoft commented on GitHub (Oct 10, 2017): There's also the official ansible role here: https://github.com/go-gitea/infrastructure/tree/master/ansible/roles/demo (Using systemd + compose)
Author
Owner

@stale[bot] commented on GitHub (Feb 12, 2019):

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.

@stale[bot] commented on GitHub (Feb 12, 2019): 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.
Author
Owner

@lunny commented on GitHub (Feb 12, 2019):

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

@lunny commented on GitHub (Feb 12, 2019): Some of them could be found on contrib sub folder or docs. So let's close this one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#36