generated from coop-cloud/example
Custom HTML
Custom HTML website, served using Nginx.
- Category: Development
- Status: 2, beta
- Image:
nginx
, 4, upstream - Healthcheck: No
- Backups: No
- Email: N/A
- Tests: 2
- SSO: No
Basic usage
- Set up Docker Swarm and
abra
- Deploy
coop-cloud/traefik
abra app new custom-html
abra app config YOURAPPDOMAIN
- be sure to change$DOMAIN
to something that resolves to your Docker swarm boxabra app deploy YOURAPPDOMAIN
- Copy your files to the container, using something like
abra app cp YOURAPPDOMAIN index.html app:/usr/share/nginx/html
Allowing upload via SSH/SFTP
To allow management of your site's files using scp, rsync or other SSH-based tools:
- If you don't already have one, generate an SSH keypair using
ssh-keygen
abra app config YOURAPPDOMAIN
- Uncomment these lines and add your public key:
#COMPOSE_FILE="$COMPOSE_FILE:compose.sftp.yml"
#PUBLIC_KEY="ssh-ed25519 AAAAC3NzaJ1lZDI1NTE5AAAAIXqf4nxUxuGmLOaxXXXXXXXXoM/GwhcrAgmtbgXToaYmCJ user@host" # Replace with a public key you generate
abra app undeploy YOURAPPDOMAIN
abra app deploy YOURAPPDOMAIN
- Test the SSH connection:
ssh -p 2220 sftp@YOURAPPDOMAIN
- You can copy local files into the server's web root with a command like:
scp -r -P 2220 * sftp@YOURAPPDOMAIN:/content
Languages
Shell
100%