[root@VM-12-15-centos gitea]# docker-compose up server Creating network "gitea_gitea" with the default driver Pulling db (mysql:5.7)... 5.7: Pulling from library/mysql ... server_1 | 2022/05/04 16:29:09 ...s/graceful/server.go:62:NewServer() [I] Starting new Web server: tcp:0.0.0.0:3000 on PID: 15
之后可以访问[服务器ip:port](有域名直接访问设置的二级域名)可以看到这个页面:
接下来在后台启动再去调整配置:
1 2 3
[root@VM-12-15-centos gitea]# docker-compose up -d server gitea_db_1 is up-to-date Starting gitea_server_1 ... done
可以查看容器运行状况:
1 2 3 4 5 6 7
[root@VM-12-15-centos gitea]# docker-compose ps Name Command State Ports ------------------------------------------------------------------------------------------ gitea_db_1 docker-entrypoint.sh mysqld Up 3306/tcp, 33060/tcp gitea_server_1 /usr/bin/entrypoint /bin/s ... Up 0.0.0.0:222->22/tcp,:::222->22/t cp, 0.0.0.0:3000->3000/tcp,:::30 00->3000/tcp
G:\code\mygitea $ git clone https://gitea.everweekup.com/Jabari/test.git Cloning into 'test'... warning: You appear to have cloned an empty repository.
G:\code\mygitea $ cdtest\
G:\code\mygitea\test $ vim Readme.md
G:\code\mygitea\test master ± $ git add . warning: LF will be replaced by CRLF in Readme.md. The file will have its original line endings in your working directory
G:\code\mygitea\test master ± $ git commit -m "First up To Gitea" [master (root-commit) db34071] First up To Gitea 1 file changed, 3 insertions(+) create mode 100644 Readme.md