gitea/docker-compose.yml

40 lines
670 B
YAML

version: "2"
networks:
gitea:
external: false
services:
server:
image: gitea/gitea:latest
environment:
- USER_UID=1002
- USER_GID=100
- DB_TYPE=mysql
- DB_HOST='db:3306'
- DB_NAME='giteat'
- DB_USER='root'
- DB_PASSWD=''gitea894231''
restart: always
networks:
- gitea
volumes:
- ./data/gitea:/data
ports:
- "3000:3000"
- "1022:22"
depends_on:
- db
db:
image: mariadb:10
restart: always
environment:
- MYSQL_ROOT_PASSWORD='gitea894231'
- MYSQL_USER=gitea
- MYSQL_PASSWORD=gitea
- MYSQL_DATABASE=gitea
networks:
- gitea
volumes:
- ./data/db:/var/lib/mysql