米兜乐园-技术笔记

基础设施|云原生|运维|网络

Docker Compose 使用速查

适合本地/私有化部署,多容器编排。

基础命令

# 后台启动
docker compose up -d

# 停止服务,保留容器
docker compose stop

# 删除容器
docker compose down

# 查看运行状态
docker compose ps

# 进入容器
docker compose exec 服务名 sh

周末随记

忙碌一周,难得静下来整理日常琐事。

午后简单收拾房间,泡一杯热茶,放下电脑和运维相关的文档,不用盯日志、不用调试容器。偶尔抽离技术世界,也是一种休息。

生活不必追求时刻紧绷,张弛有度才能长久。

小事记录

  • 午后散步,天气微凉
  • 简单阅读,不赶进度
  • 早睡,减少熬夜

技术是工作,生活属于自己。

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

0%