Skip to content

Commit

Permalink
🎨 发布my note for docker v2.0.27
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Jul 15, 2022
0 parents commit 3dcd2b0
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea/
workspace/
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# 依赖的镜像
FROM terwer/my-note:v2.0.27

#镜像创建者的信息
LABEL maintainer="Terwer<youweics@163.com>"

# 设置编码
ENV LANG C.UTF-8

# 设置时区
# ENV TZ Asia/Shanghai
ENV TZ CST-8

# docker inspect my-note-docker | grep IPAddres
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# my-note-docker

my note for docker

## use

```bash
docker compose up --build
```
20 changes: 20 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# docker-compose --log-level INFO up --build
# docker-compose --log-level INFO up -d --build

version: '3'
services:
my-note-docker:
stdin_open: true
tty: true
container_name: my-note-docker
build:
context: .
dockerfile: Dockerfile
ports:
- "6806:6806"
environment:
# 最好使用此设定时区,其它镜像也可以使用,也可以用"TZ=Asia/Shanghai"
- "TZ=CST-8"
volumes:
- ./workspace:/home/siyuan/Documents
restart: "no"

0 comments on commit 3dcd2b0

Please sign in to comment.