Change deployment to use docker-compose
This commit is contained in:
parent
3f3e654ea9
commit
f3e91c888b
14 changed files with 168 additions and 235 deletions
25
infrastructure/ingress.md
Normal file
25
infrastructure/ingress.md
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# How to configure ingress from digital ocean docker one-click app
|
||||
|
||||
## iptables (remote)
|
||||
|
||||
```sh
|
||||
iptables -L ufw-user-input
|
||||
iptables -D ufw-user-input 4
|
||||
iptables -D ufw-user-input 4
|
||||
iptables -I ufw-user-input -p tcp --dport 80 -j ACCEPT
|
||||
iptables -I ufw-user-input -p tcp --dport 443 -j ACCEPT
|
||||
```
|
||||
> Disable Docker ports and enable HTTP(S) ports
|
||||
|
||||
## Other (remote)
|
||||
|
||||
```sh
|
||||
apt update && apt upgrade -y
|
||||
rm -rf /etc/update-motd.d/99-one-click
|
||||
```
|
||||
|
||||
## Copy (local)
|
||||
|
||||
```sh
|
||||
scp -r infrastructure root@164.90.220.12:/root/infra
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue