-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yml
86 lines (80 loc) · 2.16 KB
/
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
81
82
83
84
85
86
networks:
codemeter-network:
external: false
driver: bridge
attachable: true
services:
codemeter_license_service:
build:
context: ./wibu/
dockerfile: CodeMeter.Dockerfile
image: wibu/codemeter:base
container_name: CmLicenseService
hostname: codemeter_license_service
restart: unless-stopped
entrypoint: [ "/usr/sbin/CodeMeterLin", "-v", "-l+", "-n-" ]
volumes:
- cm_config_volume:/etc/wibu/CodeMeter
- cm_license_volume:/var/lib/CodeMeter/CmAct
- /var/run/docker.sock:/var/run/docker.sock
- ./wibu/licenses:/.wibu
networks:
- codemeter-network
# The following are recommendations by Wibu
deploy:
resources:
limits:
cpus: '1.0'
memory: '75MB'
reservations:
cpus: '0.25'
memory: '35MB'
codemeter_webadmin:
# If you don't need the WebAdmin tool, you can remove this container
build:
context: ./wibu/
dockerfile: CmWebAdmin.Dockerfile
image: wibu/codemeter:webadmin
container_name: CmWebAdmin
hostname: codemeter_webadmin
restart: unless-stopped
environment:
CODEMETER_HOST: codemeter_license_service
volumes:
- cm_config_volume:/etc/wibu/CodeMeter
ports:
- "22080:22352"
- "22443:22353"
networks:
- codemeter-network
depends_on:
- codemeter_license_service
# The following are recommendations by Wibu
deploy:
resources:
limits:
cpus: '1.0'
memory: '75MB'
reservations:
cpus: '0.25'
memory: '20MB'
# your_application:
# container_name: your_application
# environment:
# CODEMETER_HOST: codemeter_license_service
# networks:
# - default
# - codemeter-network
# depends_on:
# - codemeter_license_service
volumes:
cm_config_volume:
driver: local
external: false
labels:
description: "CodeMeter Config Volume"
cm_license_volume:
driver: local
external: false
labels:
description: "CodeMeter CmAct License Volume"