Skip to content

Commit

Permalink
Add render.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
waybackarchiver committed Nov 8, 2022
1 parent 9869a8b commit 40962fc
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
27 changes: 27 additions & 0 deletions build/docker/Dockerfile.render
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2022 Wayback Archiver. All rights reserved.
# Use of this source code is governed by the GNU GPL v3
# license that can be found in the LICENSE file.
#
# syntax=docker/dockerfile:1.2
ARG WAYBACK_IMAGE_TAG=latest-bundle

FROM ghcr.io/wabarc/wayback:${WAYBACK_IMAGE_TAG}

ENV BASE_DIR /wayback
ENV WAYBACK_TOR_LOCAL_PORT 80

WORKDIR ${BASE_DIR}

RUN set -ex; \
chown wayback:nogroup /var/log/tor; \
chown wayback:nogroup /var/lib/tor; \
\
setcap 'cap_net_bind_service=+ep' /usr/local/bin/wayback; \
\
sed -i 's/User/#User/g' /etc/tor/torrc

USER wayback

EXPOSE 80

CMD ["/usr/local/bin/wayback", "-d", "web"]
19 changes: 19 additions & 0 deletions render.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2022 Wayback Archiver. All rights reserved.
# Use of this source code is governed by the GNU GPL v3
# license that can be found in the LICENSE file.
#
# More details see https://render.com/docs/blueprint-spec

services:
- type: web
name: wayback-starter
plan: free
env: docker
autoDeploy: false
healthCheckPath: /healthcheck
dockerfilePath: ./build/docker/Dockerfile.render
envVars:
- key: PORT
value: 80
- key: WAYBACK_IPFS_APIKEY
sync: false

0 comments on commit 40962fc

Please sign in to comment.