@@ -10,100 +10,100 @@ This guide will show you how to make Perplexica available over a network. Follow
10
10
11
11
3 . Stop and remove the existing Perplexica containers and images:
12
12
13
- ``` bash
14
- docker compose down --rmi all
15
- ```
13
+ ``` bash
14
+ docker compose down --rmi all
15
+ ```
16
16
17
17
4 . Open the ` docker-compose.yaml ` file in a text editor like Notepad++
18
18
19
19
5 . Replace ` 127.0.0.1 ` with the IP address of the server Perplexica is running on in these two lines:
20
20
21
- ` ` ` bash
22
- args:
23
- - NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
24
- - NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
25
- ` ` `
21
+ ``` bash
22
+ args:
23
+ - NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
24
+ - NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
25
+ ```
26
26
27
27
6 . Save and close the ` docker-compose.yaml ` file
28
28
29
29
7 . Rebuild and restart the Perplexica container:
30
30
31
- ` ` ` bash
32
- docker compose up -d --build
33
- ` ` `
31
+ ``` bash
32
+ docker compose up -d --build
33
+ ```
34
34
35
35
## macOS
36
36
37
37
1 . Open the Terminal application
38
38
39
39
2 . Navigate to the directory with the ` docker-compose.yaml ` file:
40
40
41
- ` ` ` bash
42
- cd /path/to/docker-compose.yaml
43
- ` ` `
41
+ ``` bash
42
+ cd /path/to/docker-compose.yaml
43
+ ```
44
44
45
45
3 . Stop and remove existing containers and images:
46
46
47
- ` ` ` bash
48
- docker compose down --rmi all
49
- ` ` `
47
+ ``` bash
48
+ docker compose down --rmi all
49
+ ```
50
50
51
51
4 . Open ` docker-compose.yaml ` in a text editor like Sublime Text:
52
52
53
- ` ` ` bash
54
- nano docker-compose.yaml
55
- ` ` `
53
+ ``` bash
54
+ nano docker-compose.yaml
55
+ ```
56
56
57
57
5 . Replace ` 127.0.0.1 ` with the server IP in these lines:
58
58
59
- ` ` ` bash
60
- args:
61
- - NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
62
- - NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
63
- ` ` `
59
+ ``` bash
60
+ args:
61
+ - NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
62
+ - NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
63
+ ```
64
64
65
65
6 . Save and exit the editor
66
66
67
67
7 . Rebuild and restart Perplexica:
68
68
69
- ` ` ` bash
70
- docker compose up -d --build
71
- ` ` `
69
+ ``` bash
70
+ docker compose up -d --build
71
+ ```
72
72
73
73
## Linux
74
74
75
75
1 . Open the terminal
76
76
77
77
2 . Navigate to the ` docker-compose.yaml ` directory:
78
78
79
- ` ` ` bash
80
- cd /path/to/docker-compose.yaml
81
- ` ` `
79
+ ``` bash
80
+ cd /path/to/docker-compose.yaml
81
+ ```
82
82
83
83
3 . Stop and remove containers and images:
84
84
85
- ` ` ` bash
86
- docker compose down --rmi all
87
- ` ` `
85
+ ``` bash
86
+ docker compose down --rmi all
87
+ ```
88
88
89
89
4 . Edit ` docker-compose.yaml ` :
90
90
91
- ` ` ` bash
92
- nano docker-compose.yaml
93
- ` ` `
91
+ ``` bash
92
+ nano docker-compose.yaml
93
+ ```
94
94
95
95
5 . Replace ` 127.0.0.1 ` with the server IP:
96
96
97
- ` ` ` bash
98
- args:
99
- - NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
100
- - NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
101
- ` ` `
97
+ ``` bash
98
+ args:
99
+ - NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
100
+ - NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
101
+ ```
102
102
103
103
6 . Save and exit the editor
104
104
105
105
7 . Rebuild and restart Perplexica:
106
106
107
- ` ` ` bash
108
- docker compose up -d --build
109
- ` ` `
107
+ ``` bash
108
+ docker compose up -d --build
109
+ ```
0 commit comments