mirror of
https://github.com/usememos/memos.git
synced 2024-11-28 23:04:57 +03:00
Simple docker-compose.yml (#179)
* Create docker-compose.yml * Add docker compose in readme.md * Good service name in docker-compose.yml * Update docker-compose.yml Change 2.1 to 3.0 version + path * Update docker-compose.yml Change 2.1 to 3.0 version + path * Update readme Change docker-compose to 2.0 + path * Update README.md * Update README.md Co-authored-by: boojack <imrealleonardo@gmail.com>
This commit is contained in:
parent
c97399a8ea
commit
c012ce0481
17
README.md
17
README.md
@ -26,10 +26,27 @@
|
||||
|
||||
## Deploy with Docker
|
||||
|
||||
#### Docker Run
|
||||
|
||||
```docker
|
||||
docker run -d --name memos -p 5230:5230 -v ~/.memos/:/var/opt/memos neosmemo/memos:latest
|
||||
```
|
||||
|
||||
#### Docker Compose
|
||||
|
||||
```
|
||||
version: "3.0"
|
||||
services:
|
||||
memos:
|
||||
image: neosmemo/memos:latest
|
||||
container_name: memos
|
||||
volumes:
|
||||
- ~/.memos/:/var/opt/memos
|
||||
ports:
|
||||
- 5230:5230
|
||||
restart: unless-stopped
|
||||
```
|
||||
|
||||
Memos should be running at [http://localhost:5230](http://localhost:5230). If the `~/.memos/` does not have a `memos_prod.db` file, then memos will auto generate it.
|
||||
|
||||
## Development
|
||||
|
10
docker-compose.yml
Normal file
10
docker-compose.yml
Normal file
@ -0,0 +1,10 @@
|
||||
version: "3.0"
|
||||
services:
|
||||
memos:
|
||||
image: neosmemo/memos:latest
|
||||
container_name: memos
|
||||
volumes:
|
||||
- ~/.memos/:/var/opt/memos
|
||||
ports:
|
||||
- 5230:5230
|
||||
restart: unless-stopped
|
Loading…
Reference in New Issue
Block a user