Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[web] Add paste to web Docker image

Manav Rathi98c676d4f8f9
diff --git a/docs/docs/self-hosting/guides/windows.md b/docs/docs/self-hosting/guides/windows.md
index 717c4be8eb..87b4be770c 100644
--- a/docs/docs/self-hosting/guides/windows.md
+++ b/docs/docs/self-hosting/guides/windows.md
@@ -179,6 +179,7 @@ services:
- 3004:3004 # Cast
- 3005:3005 # Share
- 3006:3006 # Embed
+ - 3008:3008 # Paste
environment:
ENTE_API_ORIGIN: http://localhost:8080
# ENTE_API_ORIGIN: http://192.168.1.42:8080
diff --git a/docs/docs/self-hosting/installation/post-install/index.md b/docs/docs/self-hosting/installation/post-install/index.md
index 7191815ee0..a323537eb5 100644
--- a/docs/docs/self-hosting/installation/post-install/index.md
+++ b/docs/docs/self-hosting/installation/post-install/index.md
@@ -113,8 +113,9 @@ apps:
```
If you are using quickstart, note that only Photos and Albums are exposed by
-default in `compose.yaml`. Expose or deploy Share / Paste separately before
-pointing `apps.public-locker` / `apps.public-paste` to those URLs.
+default in `compose.yaml`. Uncomment the Share / Paste port mappings there, or
+deploy them separately, before pointing `apps.public-locker` /
+`apps.public-paste` to those URLs.
## Step 4: Make it publicly accessible
diff --git a/server/config/compose.yaml b/server/config/compose.yaml
index b90cbba6b9..074dc5874b 100644
--- a/server/config/compose.yaml
+++ b/server/config/compose.yaml
@@ -72,6 +72,7 @@ services:
- 3004:3004
- 3005:3005
- 3006:3006
+ - 3008:3008
environment:
- NODE_ENV=development
env_file:
diff --git a/server/quickstart.sh b/server/quickstart.sh
index 15b7ada743..990e871577 100755
--- a/server/quickstart.sh
+++ b/server/quickstart.sh
@@ -104,6 +104,7 @@ services:
# - 3004:3004 # Cast
# - 3005:3005 # Share
# - 3006:3006 # Embed
+ # - 3008:3008 # Paste
# Modify these values to your custom subdomains, if using any
environment:
ENTE_API_ORIGIN: http://localhost:8080
diff --git a/web/Dockerfile b/web/Dockerfile
index 620ed7e89a..c74178d420 100644
--- a/web/Dockerfile
+++ b/web/Dockerfile
@@ -27,6 +27,7 @@ RUN yarn build:auth
RUN yarn build:cast
RUN yarn build:share
RUN yarn build:embed
+RUN yarn build:paste
FROM nginx
@@ -38,6 +39,7 @@ COPY --from=builder /build/web/apps/auth/out /out/auth
COPY --from=builder /build/web/apps/cast/out /out/cast
COPY --from=builder /build/web/apps/share/out /out/share
COPY --from=builder /build/web/apps/embed/out /out/embed
+COPY --from=builder /build/web/apps/paste/out /out/paste
COPY <<EOF /etc/nginx/conf.d/default.conf
server {
@@ -68,6 +70,10 @@ server {
listen 3006; root /out/embed;
location / { try_files \$uri \$uri.html /index.html; }
}
+server {
+ listen 3008; root /out/paste;
+ location / { try_files \$uri \$uri.html /index.html; }
+}
EOF
EXPOSE 3000
@@ -77,6 +83,7 @@ EXPOSE 3003
EXPOSE 3004
EXPOSE 3005
EXPOSE 3006
+EXPOSE 3008
ENV ENTE_API_ORIGIN=http://localhost:8080
ENV ENTE_ALBUMS_ORIGIN=https://localhost:3002
diff --git a/web/docs/docker.md b/web/docs/docker.md
index b4517f813e..56f435351f 100644
--- a/web/docs/docker.md
+++ b/web/docs/docker.md
@@ -3,7 +3,7 @@
Automated docker images that allow you to run any (or all) of the web apps are
created every Wednesday. You can use fetch them from `ghcr.io/ente-io/web`.
-These images expose web apps on 5 ports:
+These images expose web apps on 8 ports:
- `3000` - Photos
- `3001` - Account
@@ -12,6 +12,7 @@ These images expose web apps on 5 ports:
- `3004` - Cast
- `3005` - Share
- `3006` - Embed
+- `3008` - Paste
For example, for selectively exposing only the photos web app on your port 8000,
you could:
@@ -20,7 +21,7 @@ you could:
docker run -it --rm -p 8000:3000 ghcr.io/ente-io/web
```
-These images accept two environment variables to allow you to customize them:
+These images accept three environment variables to allow you to customize them:
- `ENTE_API_ORIGIN` - The API origin (scheme://host:port) for your API server.
Default: "http://localhost:8080".