-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3dcd2b0
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.idea/ | ||
workspace/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |