Skip to content

Commit

Permalink
fix: agent volume in example docker compose (#9838)
Browse files Browse the repository at this point in the history
Signed-off-by: 117503445 <t117503445@gmail.com>
  • Loading branch information
117503445 committed Apr 4, 2024
1 parent f2961fb commit 0e118fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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: {}

0 comments on commit 0e118fe

Please sign in to comment.