-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
46 lines (45 loc) · 925 Bytes
/
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
version: "3.7"
services:
asprom:
restart: always
environment:
PYTHONUNBUFFERED: 1
image: asprom
build:
context: .
dockerfile: Dockerfile
depends_on:
- mysql
volumes:
- crontabs:/var/spool/cron/crontabs
ports:
- 8100:8080
asprom-metrics:
restart: always
environment:
PYTHONUNBUFFERED: 1
image: asprom
command:
- python3
- aspromMetrics.py
depends_on:
- mysql
ports:
- 5000:5000
mysql:
restart: always
image: mysql:8.0
cap_add:
- SYS_NICE
environment:
MYSQL_USER: 'asprom'
MYSQL_PASSWORD: 'asprom'
MYSQL_DATABASE: 'asprom'
MYSQL_RANDOM_ROOT_PASSWORD: 'true'
volumes:
- "mysqldata:/var/lib/mysql"
- "./db/ddl.sql:/docker-entrypoint-initdb.d/1.sql"
- "./docker/my_mem.cnf:/etc/mysql/conf.d/my_mem.cnf"
volumes:
mysqldata:
crontabs: