Skip to content

Commit 47ee17c

Browse files
committed
added docker support and updated Readme. Algolia integrated, not configured
1 parent da8eec7 commit 47ee17c

File tree

6 files changed

+56
-3
lines changed

6 files changed

+56
-3
lines changed

.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.docusaurus

Dockerfile

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM node:16-alpine
2+
3+
WORKDIR /app
4+
5+
COPY package.json ./
6+
7+
RUN yarn
8+
9+
COPY . .
10+
11+
#replace with multistage build
12+
RUN yarn build
13+
14+
EXPOSE 3000
15+
16+
CMD ["yarn", "serve"]

README.md

+27-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Test the documentation
1+
# Daily.dev Documentation
2+
3+
## Development
24

35
```
46
git clone https://github.com/dailydotdev/docs.git
@@ -26,6 +28,30 @@ visit
2628
http://localhost:3000
2729
```
2830

31+
## Deployment
32+
33+
Build the project
34+
35+
```
36+
yarn build
37+
```
38+
Run the server
39+
40+
```
41+
yarn serve
42+
```
43+
The server is available by default on port 3000
44+
45+
## Deployment with Docker
46+
47+
From the folder where the docker-compose.yml file is located, type:
48+
49+
```
50+
docker compose up --build
51+
```
52+
The server is available by default on port 3000
53+
54+
2955
<div align="center">
3056
<img src="static/img/logo2.png" alt="Daily Logo" width="150">
3157
<h1>Welcome to the daily.dev Documentation repository</h1>

docker-compose.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: '3.8'
2+
3+
services:
4+
react-docker:
5+
image: francescoxx/dailydev-docs:0.0.2
6+
build:
7+
context: .
8+
ports:
9+
- "3000:3000"

docs/getting-started/pwa.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ You can use it:
1010

1111
- [In any browser](https://daily.dev) (desktop mobile and tablet) as a normal destination site.
1212

13-
- [On iOS]((https://daily.dev)) - an installable web app can be installed using Safari.
13+
- [On iOS](https://daily.dev) - an installable web app can be installed using Safari.
1414

1515
- [On Android](https://play.google.com/store/apps/details?id=dev.daily) - installable web app or via Google Play: daily.dev | The Homepage Developers Deserve - Apps on Google Play

docusaurus.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ const config = {
220220
// Public API key: it is safe to commit it
221221
apiKey: '724aeea3a6bc3a2af4ad7e9789752f2d',
222222

223-
indexName: 'dailydev'
223+
indexName: 'docusaurus-2'
224224
}
225225
}),
226226
};

0 commit comments

Comments
 (0)