Running into dependency error when trying to self host #153
-
|
I'm following the wiki trying to self host this and am running into an error. When I run Steps I followed:
Some machine info: docker-compose.yaml services:
frontend:
build:
context: .
dockerfile: ./deploy/frontend.dockerfile
args:
# The release tag for the client build (by default the client uses `latest`).
# - For a different build, supply the following param: `/play?r={VERSION}`.
VERSION: "latest"
# Mode must be either "release" (for production) or "watch" (for development)
MODE: "release"
# The URL that will be accessed by the user's browser
# - When running in production, you likely want to use `wss://{YOUR_DOMAIN}/ws`
SERVER_SOCKET_URL: "ws://tabletop.databunker.monster/ws"
volumes:
- frontend:/build
#ports:
# Port used for hot reloading in shadow-cljs's watch mode
#- "9630:9630"
#develop:
#watch:
# - action: sync
# path: ./src/main/ogres/app
# target: /build/src/main/ogres/app
# - action: rebuild
# path: package.json
backend:
build:
context: .
dockerfile: ./deploy/backend.dockerfile
expose:
# The websocket connection exposed by the server
- "8090"
nginx:
build:
context: .
dockerfile: ./deploy/nginx.dockerfile
args:
VERSION: "latest"
# The URL to the server's websocket, which will be proxied by nginx
SERVER_SOCKET_URL: "http://backend:8090/ws"
volumes:
- ./deploy/docker-nginx.template:/etc/nginx/templates/default.conf.template:ro
- frontend:/usr/share/nginx/app
ports:
- "3322:80"
volumes:
frontend:If you can tell what I'm getting wrong, please let me know. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
I accidentally broke installation with cb18fd9, but pushed a fix that should resolve your issue. Update your local repo and try again; let me know if you keep running into an error and I'll try to help. Sorry about that! |
Beta Was this translation helpful? Give feedback.
-
|
@samcf That worked! I'm running into an error with nginx (the one on my machine, not the container for this project). This is my file for nginx: server {
server_name <redacted>;
access_log /var/log/nginx/<redacted>/access.log;
error_log /var/log/nginx/<redcated>/error.log;
location / {
# Set headers
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 1d;
proxy_pass http://127.0.0.1:3322/;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/<redacted>/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/<redacted>/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = <redacted>) {
return 301 https://$host$request_uri;
} # managed by Certbot
if ($host = <redacted>) {
return 301 https://$host$request_uri;
} # managed by Certbot
server_name <redacted>;
listen 80;
return 404; # managed by Certbot
}I get a 502 bad gateway when I try to visit my site. This shows up in my error log: The only guess that comes to mind is that I messed up changing the port ogres uses. I switched to using port 3322 so as not to clash with anything else that might be using port 8080 since that's a common port. You can see that port 3322 is used both for |
Beta Was this translation helpful? Give feedback.
I accidentally broke installation with cb18fd9, but pushed a fix that should resolve your issue. Update your local repo and try again; let me know if you keep running into an error and I'll try to help.
Sorry about that!