-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
131 lines (131 loc) · 3.66 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
version: '2.4'
services:
cache:
container_name: gollector-cache
build:
context: .
dockerfile: app/cache/Dockerfile
volumes:
- ./config:/config:ro # configuration files
ports:
- "${GRPC_PORT}:${GRPC_PORT}"
- "${PPROF_PORT}:${PPROF_PORT}"
logging:
driver: "json-file"
options:
max-size: 5G
max-file: "10"
command: [ "--config", "/config/cache.yml" ]
entrada:
container_name: gollector-entrada
build:
context: .
dockerfile: app/entrada/Dockerfile
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./config:/config:ro # configuration files
logging:
driver: "json-file"
options:
max-size: 5G
max-file: "10"
command: [ "--config", "/config/entrada.yml" ]
zones:
container_name: gollector-zones
build:
context: .
dockerfile: app/zones/Dockerfile
environment:
- COM_FTP_PASS=${COM_FTP_PASS}
- CZDS_PASS=${CZDS_PASS}
- DK_SSH_PASS=${DK_SSH_PASS}
volumes:
- ./config:/config:ro # configuration files
- ${SSH_DIR}:/ssh:ro # ssh keys
- ${ZONEFILE_DIR}:/zonefiles # directory to store zone files
logging:
driver: "json-file"
options:
max-size: 5G
max-file: "10"
command: [ "--config", "/config/zones.yml" ]
zonediffer:
container_name: gollector-zonediffer
build:
context: .
dockerfile: app/zonediffer/Dockerfile
volumes:
- ./config:/config:ro # configuration files
- ${ZONEFILE_DIR}:/zonefiles:ro # ssh keys
logging:
driver: "json-file"
options:
max-size: 5G
max-file: "10"
command: [ "--config", "/config/zonediffer.yml" ]
zones-test:
container_name: gollector-zones-test
build:
context: .
dockerfile: app/zones/Dockerfile
environment:
- COM_FTP_PASS=${COM_FTP_PASS}
- CZDS_PASS=${CZDS_PASS}
- DK_SSH_PASS=${DK_SSH_PASS}
volumes:
- ./config:/config:ro # configuration files
- ${SSH_DIR}:/ssh:ro # ssh keys
- ${ZONEFILE_DIR}:/zonefiles # directory to store zone files
logging:
driver: "json-file"
options:
max-file: "10"
max-size: 5G
command: [ "--config", "/config/zones-test.yml" ]
ct:
container_name: gollector-ct
build:
context: .
dockerfile: app/ct/Dockerfile
volumes:
- ./config:/config:ro # configuration files
logging:
driver: "json-file"
options:
max-size: 5G
max-file: "10"
command: [ "--config", "/config/ct.yml", "-logtostderr" ]
splunk:
container_name: gollector-splunk
build:
context: .
dockerfile: app/splunk/Dockerfile
volumes:
- ./config:/config:ro # configuration files
- ${SPLUNK_DIR}:/splunk # directory containing Splunk JSON logs
logging:
driver: "json-file"
options:
max-size: 5G
max-file: "10"
command: [ "--config", "/config/splunk.yml", "-logtostderr" ]
db:
container_name: gollector-db
image: postgres:12
shm_size: 5g
restart: always
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASS?err}
volumes:
- ./db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d # initialization scripts, only executed first time
- ./db/config/postgresql.conf:/etc/postgresql.conf # mount configuration file
- ${DB_VOLUME?err}:/var/lib/postgresql/data # persistent storage of database
ports:
- "${POSTGRES_HOST?err}:${POSTGRES_PORT?err}:5432"
logging:
driver: "json-file"
options:
max-size: 5G
max-file: "10"
command: [ "-c", "config_file=/etc/postgresql.conf" ]