-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
82 lines (77 loc) · 1.87 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
81
82
version: '3.7'
services:
app:
image: skep/app:${BUILD_TAG:-latest}
networks:
- skep
ports:
- "8080:8080"
deploy:
mode: replicated
replicas: 1
environment:
# Used for internal communication only. Do NOT publish this port:
SKEP_PRIVATE_PORT: '6666'
agent:
image: skep/agent:${BUILD_TAG:-latest}
networks:
- skep
deploy:
mode: global
volumes:
- "/dev:/hostfs/dev:ro"
- "/etc:/hostfs/etc:ro"
- "/proc:/hostfs/proc:ro"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
environment:
SKEP_APP_URL: http://app:6666
SKEP_CHARTS_URL: http://charts:8080
DISKS:
FILE_SYSTEMS:
NETWORK_INTERFACES:
COLLECT_INTERVAL:
SAMPLE_DURATION:
LOG_LEVEL:
SKEP_HOST:
charts:
image: skep/charts:${BUILD_TAG:-latest}
networks:
- skep
deploy:
mode: replicated
replicas: 1
environment:
SKEP_APP_URL: http://app:6666
SKEP_CHARTS_URL: http://charts:8080
LOG_LEVEL:
monitor:
image: skep/monitor:${BUILD_TAG:-latest}
networks:
- skep
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
environment:
SKEP_APP_URL: http://app:6666
SKEP_CHARTS_URL: http://charts:8080
SERVICE_URL_TEMPLATE:
IMAGE_URL_TEMPLATE: https://hub.docker.com/r/{organization}/{repository}
database:
image: postgres:12
networks:
- skep
deploy:
mode: replicated
replicas: 1
environment:
PGDATA: /var/lib/postgres/data
POSTGRES_HOST_AUTH_METHOD: trust
# To persist database storage, use a configuration similar to this:
# volumes:
# - "/shared/network/storage/skep/:/var/lib/postgres/data/:rw"
networks:
skep: {}