-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
34 lines (32 loc) · 810 Bytes
/
docker-compose.yaml
File metadata and controls
34 lines (32 loc) · 810 Bytes
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
version: "3.7"
services:
web-server:
container_name: web4cacti
build:
dockerfile: web-server/Dockerfile
context: .
args:
CACTI_VERSION: "${CACTI_VERSION:-1.2.24}"
restart: always
volumes:
- "./data/html:/var/www/html"
# - "web-cacti:/var/www/html"
environment:
CACTI_VERSION: "${CACTI_VERSION:-1.2.24}"
ports:
- "${CACTI_WEB_PORT:-8081}:80"
mysql-server:
container_name: mysql4cacti
build:
dockerfile: mysql-server/Dockerfile
context: .
restart: always
volumes:
- "./data/mysql:/var/lib/mysql"
# - mysql-data:/var/lib/mysql
environment:
CACTI_VERSION: "${CACTI_VERSION:-1.2.24}"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD:-secret}"
# volumes:
# web-cacti:
# mysql-data: