mirror of https://github.com/k3s-io/k3s.git
fix: agent volume in example docker compose (#9838)
Signed-off-by: 117503445 <t117503445@gmail.com>pull/9875/head
parent
f2961fb5d2
commit
0e118fe6d3
|
@ -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: {}
|
||||
|
|
Loading…
Reference in New Issue