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
{{ message }}
This repository was archived by the owner on Jul 16, 2024. It is now read-only.
* First Step to Dockerize
That's one small step for dockerfile, one giant leap for buildkind.
* Review dockerfile
Ready to merge
Todo: Need to solve the CORS issue
* add docker compose
* add finally the final dockerization.
* add clean up docker section.
* small typo
Copy file name to clipboardexpand all lines: README.md
+48-2
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,6 @@ A blazingly fast Stack Overflow clone running the real Stack Exchange dataset.
6
6
7
7
**UPDATE: This project is properly updated to work with version 20.xx.x of Dgraph. It's working as expected on macOS and Linux. There are some problems running the project on Windows, that can be solved by starting JS server and JS client separately. See "syntax_changed.md" for detailed instructions**
8
8
9
-
[Live](https://graphoverflow.dgraph.io)
10
-
11
9
## Running locally
12
10
13
11
### First Thing first
@@ -28,6 +26,54 @@ it won't work.
28
26
29
27
> You can also instead of steps 2, 3, and 4, you can just run sh ./run.sh
30
28
29
+
### Docker Compose
30
+
31
+
We have a dockerized env so you can run this project.
32
+
33
+
1. Run Docker-composer
34
+
35
+
The first build will take time.
36
+
```
37
+
docker-compose up # In the first time
38
+
or
39
+
docker-compose up --build # If you wanna rebuild it
40
+
```
41
+
The compose has a script that will prepare everything for you. You might wait for the deployment to be done and updated the page if so.
42
+
43
+
2. Now go to localhost:3000 or the IP if you are running docker in a VM.
44
+
45
+
### If anything goes wrong
46
+
47
+
If the page loads but keeps showing the animated loader. It means that something goes wrong. You should see a loaded site with empty questions.
48
+
49
+
>You don't need to do much when running this docker-compose. In general, if you are running docker in a VM the IP is 192.168.99.100 (between 99 and 199, you can check it via docker-machine). In that case, you gonna need to change all addresses in the code from localhost or 127.0.0.1 to the VM IP.
50
+
51
+
>Paths you might change: \
52
+
app/client/src/lib/helpers.js \
53
+
app/helpers.js
54
+
55
+
>Pay attention that this docker-composer will create a volume in your docker env.
56
+
57
+
>If your docker is binded to localhost. Don't change anything.
58
+
59
+
### Clean up docker.
60
+
61
+
```
62
+
docker-compose down
63
+
or
64
+
docker-compose rm
65
+
```
66
+
and
67
+
```
68
+
docker stop $(docker ps -a -q)
69
+
70
+
docker rm $(docker ps -a -q)
71
+
72
+
docker volume ls
73
+
74
+
docker volume rm graphoverflow_dgraph
75
+
```
76
+
31
77
### Dgraph
32
78
33
79
This app is currently compatible with Dgraph v20.xx.x
0 commit comments