Update readme with gitea settings and new docker commands.
This commit is contained in:
parent
266653b48b
commit
ce7b97f2c6
53
README.md
53
README.md
@ -11,17 +11,49 @@
|
||||
`docker pull pa4kev/portfolio-reactjs-full`
|
||||
|
||||
if required, run certbot to set the certificates.
|
||||
`docker run -it --rm -p 80:80 --name certbot -v "/etc/letsencrypt:/etc/letsencrypt" -v "/var/lib/letsencrypt:/var/lib/letsencrypt" certbot/certbot certonly --standalone --break-my-certs -d matsubara.nl -d www.matsubara.nl -d pa4kev.nl -d www.pa4kev.nl -d michelaben.nl -d www.michelaben.nl`
|
||||
|
||||
`docker run -d --name react -p 80:80 -p 443:443 -v /etc/letsencrypt:/etc/letsencrypt -v /var/lib/letsencrypt:/var/lib/letsencrypt -v /var/www/html:/var/www/html pa4kev/portfolio-reactjs-full`
|
||||
* First stop Nginx, as it is using port 80
|
||||
``sudo systemctl start nginx.service``
|
||||
|
||||
To renew, stop the current running container. Then re-run the same commands as above again.
|
||||
* Run this container, I doubt that i am understanding how it works properly though.
|
||||
`docker run -it --rm -p 80:80 --name certbot -v "/etc/letsencrypt:/etc/letsencrypt" -v "/var/lib/letsencrypt:/var/lib/letsencrypt" certbot/certbot certonly --standalone --break-my-certs -d matsubara.nl -d www.matsubara.nl -d pa4kev.nl -d www.pa4kev.nl -d michelaben.nl -d www.michelaben.nl -d gitea.matsubara.nl`
|
||||
|
||||
## Server (Wielewaal)
|
||||
* Start Nginx again.
|
||||
`sudo systemctl start nginx.service`
|
||||
|
||||
`docker pull pa4kev/portfolio-mariadb`
|
||||
* Run the portfolio container.
|
||||
`docker run -t -d --name react -p 8080:80 -v /var/www/html:/var/www/html pa4kev/portfolio-reactjs-full`
|
||||
|
||||
---
|
||||
* `-t` foreground mode
|
||||
* `-d` detached mode
|
||||
|
||||
* Run the Gitea container.
|
||||
`docker run -d --name gitea -p 3000:3000 -p 222:22 -v ./gitea:/data -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro gitea/gitea:1.22.6`
|
||||
|
||||
`docker run -it --rm --name certbot --net webproxy -v $(pwd)/letsencrypt:/etc/letsencrypt -v $(pwd)/letsencrypt-lib:/var/lib/letsencrypt certbot/certbot certonly --standalone --preferred-challenges http -d matsubara.nl -d www.matsubara.nl -d pa4kev.nl -d www.pa4kev.nl -d michelaben.nl -d www.michelaben.nl -d gitea.matsubara.nl`
|
||||
|
||||
## Nginx
|
||||
|
||||
`sudo vim /etc/nginx/sites-available/matsubara.nl`
|
||||
|
||||
`sudo nginx -t`
|
||||
|
||||
`sudo systemctl reload nginx`
|
||||
|
||||
## Gitea
|
||||
|
||||
`docker run -d --name gitea -p 3000:3000 -p 222:22 -v ./gitea:/data -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro gitea/gitea:1.22.6`
|
||||
|
||||
* Adjust settings for gitea.
|
||||
`docker exec -it gitea bash`
|
||||
|
||||
`vi ./data/gitea/conf/app.ini`
|
||||
|
||||
* Applied this setting. See also: [Gitea config cheatsheet](https://docs.gitea.com/next/administration/config-cheat-sheet)
|
||||
`DISABLE_REGISTRATION = true`
|
||||
|
||||
* Then restart the container.
|
||||
`docker container restart gitea`
|
||||
|
||||
## React
|
||||
|
||||
@ -84,6 +116,15 @@ You can now run for development:
|
||||
|
||||
---
|
||||
|
||||
## Docker
|
||||
|
||||
To no longer require `sudo` for docker, use:
|
||||
|
||||
* `sudo groupadd docker`
|
||||
* `sudo gpasswd -a $USER docker`
|
||||
|
||||
---
|
||||
|
||||
## Documentation
|
||||
|
||||
[Create React App](https://github.com/facebook/create-react-app)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user