You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-13Lines changed: 6 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ Monitor your render jobs from anywhere right on your phone.
35
35
</p>
36
36
37
37
# Installation instructions (Docker)
38
+
Unfortunately I can't provided a built image due to how NextJS generates static HTML at build time, which has to include the backend WebSocket URL. I've provided a docker-compose file so you can easily build and run the image yourself.
38
39
1. Make sure you have the [backend for this frontend](https://github.com/BreakTools/deadline-web-app-backend) running.
4. Open `.env.local` and change NEXT_PUBLIC_BACKEND_URL to the URL of your running WebSocket backend.
48
-
5. Build the Docker container.
48
+
4. Open `docker-compose.yml` and change the NEXT_PUBLIC_BACKEND_URL arg to the URL of your running WebSocket backend. Feel free to change the container port as well.
49
+
5. Build and run the Docker container.
49
50
```
50
-
docker build -t deadline-web-app-frontend .
51
+
docker compose up
51
52
```
52
-
6. Run the backend.
53
-
```
54
-
docker run -p 3000:3000 deadline-web-app-frontend
55
-
```
56
-
That's it! The backend is now running. By default it runs on port 3000, to change this you can set the `PORT` environment variable to another value, like this:
57
-
```
58
-
docker run -e PORT=4000 -p 4000:4000 deadline-web-app-frontend
59
-
```
60
-
Make sure to put this webserver behind a domain name with SSL, otherwise the desktop notifications won't work.
53
+
That's it! The frontend is now running. Make sure to put this webserver behind a domain name with SSL, otherwise the desktop notifications won't work.
61
54
62
55
# Installation instructions (Standalone)
63
56
1. Make sure you have the [backend for this frontend](https://github.com/BreakTools/deadline-web-app-backend) running.
64
57
2. Make sure you have a recent version of NodeJS installed.
65
58
3. Download this repository, put it in a good spot and cd into it. Run `npm install` to download all needed Node packages.
66
-
4.Open `.env.local` and change NEXT_PUBLIC_BACKEND_URL to the URL of your running WebSocket backend.
59
+
4.Create and open `.env.local`, add a NEXT_PUBLIC_BACKEND_URL and set it to the URL of your running WebSocket backend.
67
60
5. Run `npm run build`, then run `npm run start` to start the webserver.
68
61
69
62
That's it! Make sure to put this webserver behind a domain name with SSL, otherwise the desktop notifications won't work.
0 commit comments