forked from miguelraulb/spamhat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
46 lines (43 loc) · 981 Bytes
/
docker-compose.yaml
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
services:
spamhat:
build: .
image: referefrefref/spamhat:latest
depends_on:
- mariadb
networks:
- spamhat_network
ports:
- "2525:2525"
environment:
MYSQL_HOST: 127.0.0.1
MYSQL_USER: spamhat
MYSQL_PASSWORD: password
MYSQL_DATABASE: spamhat
volumes:
- ./output:/root/spamhat/output
- ./spam:/root/spamhat/spam
- ./logs:/root/spamhat/log
entrypoint: ["/root/spamhat/init-and-run.sh"]
mariadb:
image: mariadb:latest
networks:
- spamhat_network
environment:
MYSQL_ROOT_PASSWORD: root_password
MYSQL_DATABASE: spamhat
MYSQL_USER: spamhat
MYSQL_PASSWORD: password
ports:
- "3306:3306"
volumes:
- mariadb_data:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h localhost"]
interval: 10s
timeout: 5s
retries: 3
networks:
spamhat_network:
driver: bridge
volumes:
mariadb_data: