Unverified Commit 28dca134 authored by Max Proske's avatar Max Proske Committed by GitHub

Update Docker examples to use Compose v2 command (#51134)

Compose v1 has reached EOL, and will no longer be included with Docker after June 2023: https://www.docker.com/blog/docker-desktop-4-19/
parent 5e9b5e5d
# DO NOT ADD SECRETS TO THIS FILE. This is a good place for defaults.
# If you want to add secrets use `.env.production.local` instead, which is automatically detected by docker-compose.
# If you want to add secrets use `.env.production.local` instead, which is automatically detected by `docker compose`.
ENV_VARIABLE=production_server_only_variable
NEXT_PUBLIC_ENV_VARIABLE=production_public_variable
......@@ -46,12 +46,10 @@ First, run the development server:
docker network create my_network
# Build dev
# Note: Keep v1 command until "Use Docker Compose v2" is enabled by default for Docker Desktop for Linux
# Docker aliases `docker-compose` (v1 command) to `docker compose` (v2 command), but not the other way around
docker-compose -f docker-compose.dev.yml build
docker compose -f docker-compose.dev.yml build
# Up dev
docker-compose -f docker-compose.dev.yml up
docker compose -f docker-compose.dev.yml up
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
......@@ -70,10 +68,10 @@ First, run the production server (Final image approximately 110 MB).
docker network create my_network
# Build prod
docker-compose -f docker-compose.prod.yml build
docker compose -f docker-compose.prod.yml build
# Up prod in detached mode
docker-compose -f docker-compose.prod.yml up -d
docker compose -f docker-compose.prod.yml up -d
```
Alternatively, run the production server without without multistage builds (Final image approximately 1 GB).
......@@ -84,10 +82,10 @@ Alternatively, run the production server without without multistage builds (Fina
docker network create my_network
# Build prod without multistage
docker-compose -f docker-compose.prod-without-multistage.yml build
docker compose -f docker-compose.prod-without-multistage.yml build
# Up prod without multistage in detached mode
docker-compose -f docker-compose.prod-without-multistage.yml up -d
docker compose -f docker-compose.prod-without-multistage.yml up -d
```
Open [http://localhost:3000](http://localhost:3000).
......
......@@ -69,7 +69,7 @@ The Temporal Node SDK requires [Node `>= 14`, `node-gyp`, and Temporal Server](h
In the Temporal Server docker directory:
```bash
docker-compose up
docker compose up
```
In the `next-temporal-app/` directory:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment