Skip to content

Commit 8af64f4

Browse files
committed
Mount leveldb directory
1 parent 17e6daa commit 8af64f4

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ RUN yarn run build
1919

2020
EXPOSE 1234 8080
2121

22+
VOLUME ["/usr/src/app/y-leveldb-databases"]
23+
2224
CMD ["yarn", "run", "server"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Now you can visit `http://localhost:8080/` to view the application.
3838

3939
```bash
4040
docker build . -t cattaz # --build-arg http_proxy=http://user:[email protected]:8080 --build-arg https_proxy=http://user:[email protected]:8080
41-
docker run -it -p 8080:8080 -p 1234:1234 cattaz
41+
docker run -it -p 8080:8080 -p 1234:1234 -v $(pwd)/y-leveldb-databases:/usr/src/app/y-leveldb-databases cattaz
4242
```
4343

4444
Now you can visit `http://localhost:8080/` to view the application.

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ services:
99
ports:
1010
- "1234:1234"
1111
- "8080:8080"
12+
volumes:
13+
- ./y-leveldb-databases:/usr/src/app/y-leveldb-databases

docs/ja/usage.cattaz.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ yarn start
1818

1919
```bash
2020
docker build . -t cattaz # --build-arg http_proxy=http://user:[email protected]:8080 --build-arg https_proxy=http://user:[email protected]:8080
21-
docker run -it -p 8080:8080 -p 1234:1234 cattaz
21+
docker run -it -p 8080:8080 -p 1234:1234 -v $(pwd)/y-leveldb-databases:/usr/src/app/y-leveldb-databases cattaz
2222
```
2323

2424
上記コマンドを実行後、`http://localhost:8080/`にアクセスするとアプリケーションを見ることができます。

docs/usage.cattaz.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Now you can visit `http://localhost:8080/` to view the application.
1818

1919
```bash
2020
docker build . -t cattaz # --build-arg http_proxy=http://user:[email protected]:8080 --build-arg https_proxy=http://user:[email protected]:8080
21-
docker run -it -p 8080:8080 -p 1234:1234 cattaz
21+
docker run -it -p 8080:8080 -p 1234:1234 -v $(pwd)/y-leveldb-databases:/usr/src/app/y-leveldb-databases cattaz
2222
```
2323

2424
Now you can visit `http://localhost:8080/` to view the application.

0 commit comments

Comments
 (0)