~comcloudway/pages

14bbd453e20d919f7c4371e305c2fabaf4ed1b06 — Jakob Meier 1 year, 3 months ago d686efc
Added hosting instructions
1 files changed, 24 insertions(+), 0 deletions(-)

M README.org
M README.org => README.org +24 -0
@@ 18,3 18,27 @@ Afterwards the build output can be found in the ~build/~ folder.

To get a local server running,
you can use ~serve build~

** Hosting
I found that the easiest way to host static files is using nginx
and a sftp server.
#+begin_src yaml
version: '3'

services:
  backend:
    image: atmoz/sftp:alpine
    volumes:
      # [...] addition config
      - ./files:/home/deploy/upload
    ports:
      - 29493:22
  # [...] addition config
  frontend:
    image: nginx:mainline-alpine
    volumes:
      - ./files:/usr/share/nginx/html/:ro
      - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
    ports:
      - 9493:80
#+end_src