This commit is contained in:
chinky 2018-07-08 21:17:44 +08:00
commit 6b7135eb33
2 changed files with 42 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/data
/.vscode

40
docker-compose.yml Normal file
View File

@ -0,0 +1,40 @@
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