-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
80 lines (74 loc) · 1.86 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
services:
clionremote:
container_name: clionremote
image: "clionremote:local"
build:
context: .
dockerfile: ./resources/docker/clion_remote.Dockerfile
depends_on:
# - slate_database
- slate_rancher_server
restart: always
cap_add:
- sys_ptrace
ports:
- "127.0.0.1:2222:22"
- "127.0.0.1:18080:18080"
volumes:
# - dynamodb_lib:/tmp/DynamoDBLocal_lib
- k3s-output:/kubernetes
networks:
- slateNetwork
# slate_database:
# container_name: slate_database
# image: amazon/dynamodb-local:1.18.0
# working_dir: /home/dynamodblocal
# command: "-jar DynamoDBLocal.jar -sharedDb -dbPath ./data"
# volumes:
# - dynamodb_data:/home/dynamodblocal/data
# - dynamodb_lib:/home/dynamodblocal/DynamoDBLocal_lib
# restart: always
# user: root
# networks:
# - slateNetwork
slate_rancher_agent:
container_name: slate_rancher_agent
image: rancher/k3s:v1.24.9-k3s1-amd64
depends_on:
- slate_rancher_server
restart: always
privileged: true
command: "agent"
tmpfs:
- /run
- /var/run
environment:
- K3S_TOKEN=slatek3s
- K3S_URL=https://slate_rancher_server:6443
networks:
- slateNetwork
slate_rancher_server:
container_name: slate_rancher_server
image: rancher/k3s:v1.24.9-k3s1-amd64
restart: always
privileged: true
command: "server --bind-address slate_rancher_server"
tmpfs:
- /run
- /var/run
environment:
- K3S_KUBECONFIG_OUTPUT=/output/kubeconfig.yaml
- K3S_KUBECONFIG_MODE=666
- K3S_TOKEN=slatek3s
volumes:
- k3s-output:/output
- k3s-server:/var/lib/rancher/k3s
networks:
- slateNetwork
networks:
slateNetwork:
volumes:
# dynamodb_data:
# dynamodb_lib:
k3s-output:
k3s-server: