You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
926 B
35 lines
926 B
9 months ago
|
---
|
||
|
title: NAS中安装docker-compose
|
||
|
tags:
|
||
|
- docker
|
||
|
- NAS技术
|
||
|
- 反向代理
|
||
8 months ago
|
categories: NAS技术
|
||
9 months ago
|
description:
|
||
|
abbrlink: 3251282051
|
||
|
date: 2024-02-28 8:02:22
|
||
|
keywords:
|
||
|
---
|
||
|
>使用docker能很方便的搭建一些自建服务,而docker-compose是一个是用于定义和运行多容器 Docker 应用程序的工具。
|
||
|
>通过docker-compose,我们可以使用 YML 文件来配置应用程序需要的服务。然后,使用一个命令,就可以从 YML 文件配置中创建并启动所有服务。
|
||
|
|
||
|
>注:群晖安装完docker套件后,默认已经安装了docker-compose
|
||
|
|
||
|
# 首先使用ssh连接nas
|
||
|
这一步请自行百度。
|
||
|
|
||
|
# 下载docker-compose
|
||
|
|
||
|
```
|
||
9 months ago
|
curl -L https://oss.dreamlyn.cn/nas/blog/docker-compose > /usr/local/bin/docker-compose
|
||
9 months ago
|
```
|
||
|
|
||
|
# 为docker-compose添加可执行权限
|
||
|
```
|
||
|
chmod +x /usr/local/bin/docker-compose
|
||
|
```
|
||
|
# 查看版本(检查可用性)
|
||
|
```
|
||
|
docker-compose --version
|
||
|
```
|