fix: agent volume in example docker compose (#9838)

Signed-off-by: 117503445 <t117503445@gmail.com>
This commit is contained in:
HaoTian Qi 2024-04-05 01:36:47 +08:00 committed by GitHub
parent f2961fb5d2
commit 0e118fe6d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,6 @@
# to run define K3S_TOKEN, K3S_VERSION is optional, eg:
# K3S_TOKEN=${RANDOM}${RANDOM}${RANDOM} docker-compose up
version: '3'
services:
server:
@ -45,6 +44,9 @@ services:
environment:
- K3S_URL=https://server:6443
- K3S_TOKEN=${K3S_TOKEN:?err}
volumes:
- k3s-agent:/var/lib/rancher/k3s
volumes:
k3s-server: {}
k3s-agent: {}