-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9869a8b
commit 40962fc
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |