-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (45 loc) · 1.28 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
version: "3.8"
services:
geo-log-finder:
image: techblog/geo-log-finder
container_name: geo-log-finder
restart: always
environment:
- LOG_PATH=${LOG_PATH}
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASS}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_NAME=${DB_NAME}
- TABLE_NAME=${TABLE_NAME}
- GEO_IP_URL=${GEO_IP_URL}
- SLEEP_TIME=${SLEEP_TIME}
volumes:
- /path/to/AccesLog/in/host:/opt/log:ro
freegeoip: #https://github.com/t0mer/freegeoip
image: techblog/freegeoip
container_name: freegeoip
ports:
- "8080:8080"
- "8888:8888"
restart: always
grafana-mariadb:
image: mariadb:10.7.1
container_name: grafana-mariadb
restart: unless-stopped
volumes:
- grafana-mariadb:/var/lib/mysql:rw
ports:
- "3306:3306" #needed only for User Access, you can remove this part and the proccess will still work
environment:
- MYSQL_ROOT_PASSWORD=${_APP_DB_ROOT_PASS}
- MYSQL_DATABASE=${_GRAFANA_DB_SCHEMA}
- MYSQL_USER=${_APP_DB_USER}
- MYSQL_PASSWORD=${_APP_DB_PASS}
command: 'mysqld --innodb-flush-method=fsync'
grafana-ui:
image: grafana/grafana
restart: always
container_name: grafana-ui
ports:
- "3000:3000"