Skip to content

Instantly share code, notes, and snippets.

@rpalaciosg
Created April 21, 2021 16:51
Show Gist options
  • Save rpalaciosg/0bcdd657f7868af9c1a610f4b6c2b3ac to your computer and use it in GitHub Desktop.
Save rpalaciosg/0bcdd657f7868af9c1a610f4b6c2b3ac to your computer and use it in GitHub Desktop.
Instalaccion y configuracion de Gitea y mysql con docker-compose
version: '3'
networks:
gitea:
external: false
volumes:
gitea:
driver: local
services:
web:
image: gitea/gitea:1.13.6
container_name: gitea
environment:
- USER_uid=1000
- USER_GUID=1000
- DB_TYPE=mysql
- DB-HOST=db:3306
- DB_NAME=gitea
- DB_USER=gitea
- DB_PASSD=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: mysql:5.7
restart: always
environment:
- MYSQL_ROOT_PASSWORD=gitea
- MYSQL_USER=gitea
- MYSQL_PASSWORD=gitea
- MYSQL_DATABASE=giteai
networks:
- gitea
volumes:
- ./mysql:/var/lib/mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment