-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1.05 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
version: '3'
services:
mysql:
container_name: mysql
image: mysql:5.6
environment:
MYSQL_ROOT_PASSWORD: "spider"
MYSQL_DATABASE: "spider"
MYSQL_USER: "spider"
MYSQL_PASSWORD: "spider"
volumes:
- ./data:/var/lib/mysql
restart: always
ports:
- "3306:3306"
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
api:
build:
context: .
dockerfile: ./dashboard/Dockerfile
command: node /usr/src/app/dashboard/api.js
container_name: api
ports:
- "8080:3000"
restart: unless-stopped
depends_on:
- mysql
nodejs:
build:
context: .
dockerfile: Dockerfile
command: node /usr/src/app/crawler.js
container_name: nodejs
restart: unless-stopped
volumes:
- ${PWD}/counter.txt:/usr/src/app/counter.txt
depends_on:
- mysql
phpmyadmin:
image: phpmyadmin
restart: always
ports:
- 8088:80
environment:
- PMA_ARBITRARY=1
volumes:
datvolume: