-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathdocker-compose-version-2
29 lines (18 loc) · 1001 Bytes
/
docker-compose-version-2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# https://docs.docker.com/compose/cli-command/
# https://docs.docker.com/compose/profiles/
#########################################################################################
# 1 Run the following command to download the current stable release of Docker Compose
#########################################################################################
mkdir -p ~/.docker/cli-plugins/
curl -SL https://github.com/docker/compose/releases/download/v2.0.1/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose
###############################################
# 2 Apply executable permissions to the binary
###############################################
chmod +x ~/.docker/cli-plugins/docker-compose
###############################################
# 3 Apply executable permissions to the binary
###############################################
docker compose version
# Commands
# Build a Specific Profile
docker compose -p app up -d --build