Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save dnburgess/2c43fd4bcf8a326005b29452dc042ecc to your computer and use it in GitHub Desktop.
Save dnburgess/2c43fd4bcf8a326005b29452dc042ecc to your computer and use it in GitHub Desktop.
DB Tech Gitea
version: "3"
networks:
gitea:
external: false
services:
server:
image: gitea/gitea:1.14.2
container_name: gitea
environment:
- USER_UID=998
- USER_GID=100
- GITEA__database__DB_TYPE=mysql
- GITEA__database__HOST=db:3306
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=gitea
restart: always
networks:
- gitea
volumes:
- /srv/confs/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "2234:22"
depends_on:
- db
db:
image: mysql:5.7
restart: always
environment:
- MYSQL_ROOT_PASSWORD=gitea
- MYSQL_USER=gitea
- MYSQL_PASSWORD=gitea
- MYSQL_DATABASE=gitea
networks:
- gitea
volumes:
- /srv/databases/gitea/mysql:/var/lib/mysql
@crazyaccess
Copy link

Hey thx for his mr burgess

@AxiomaAbsurdo
Copy link

thanks @dnburgess, works awesome and super easy to make some tweaks for my personal flavor. 👍

@jonasermert
Copy link

Worked for me, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment