-
Notifications
You must be signed in to change notification settings - Fork 533
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (73 loc) · 2.13 KB
/
docker-compose.yml
File metadata and controls
79 lines (73 loc) · 2.13 KB
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
name: AdaptixC2
services:
# Build Qt client
client-builder:
profiles:
- build-client
build:
context: .
network: host
target: build-client
container_name: adaptix-client-builder
volumes:
- ./AdaptixClient/client-dist:/client-dist-output/
command: sh -c "cp -r /client-dist/* /client-dist-output/"
# Build server only
server-builder:
profiles:
- build-server
build:
context: .
target: build-server
container_name: adaptix-server-builder
volumes:
- ./AdaptixServer/server-dist:/server-dist
command: sh -c "mkdir -p /server-dist && cp /app/dist/adaptixserver /app/dist/ssl_gen.sh /app/dist/profile.yaml /app/dist/404page.html /server-dist/ || true"
# Build extenders only
extenders-builder:
profiles:
- build-extenders
build:
context: .
target: build-extenders
container_name: adaptix-extenders-builder
volumes:
- ./AdaptixServer/server-dist:/server-dist
command: sh -c "mkdir -p /server-dist/extenders && cp -r /app/dist/extenders/* /server-dist/extenders/ || true"
# Build server + extenders
server-ext-builder:
profiles:
- build-server-ext
build:
context: .
target: build-server-ext
container_name: adaptix-server-ext-builder
volumes:
- ./AdaptixServer/server-dist:/server-dist
command: sh -c "mkdir -p /server-dist && cp /app/dist/adaptixserver /app/dist/ssl_gen.sh /app/dist/profile.yaml /app/dist/404page.html /server-dist/ && cp -r /app/dist/extenders /server-dist/ || true"
# Run server (runtime)
adaptix-server-runtime:
profiles:
- runtime
build:
context: .
target: runtime
container_name: adaptix-server-runtime
network_mode: host
volumes:
- ./AdaptixServer/server-dist/data:/app/data
- ./AdaptixServer/server-dist/profile.yaml:/app/profile.yaml:ro
environment:
- TZ=${TZ:-UTC}
restart: unless-stopped
deploy:
resources:
limits:
cpus: '2.0'
memory: 2G
reservations:
cpus: '1.0'
memory: 1G
volumes:
adaptix-data:
driver: local