Browse Source

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

Signed-off-by: 117503445 <t117503445@gmail.com>
pull/9875/head
HaoTian Qi 8 months ago committed by GitHub
parent
commit
0e118fe6d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      docker-compose.yml

4
docker-compose.yml

@ -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…
Cancel
Save