forked from creditease-sec/insight2_docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (48 loc) · 1.02 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
version: '2'
services:
web_mysql:
image: "mysql:5.7"
restart: always
hostname: web_mysql
volumes:
- "./mysql:/var/lib/mysql"
- "./init:/docker-entrypoint-initdb.d/"
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "crediteaseitsec"
web_redis:
image: "redis"
restart: always
hostname: web_redis
command: redis-server --requirepass "crediteaseitsec"
ports:
- "6379:6379"
backend:
image: "crediteaseitsec/insight2"
restart: always
ports:
- "8001:8000"
volumes:
- "./backend_logs:/app/insight2/logs"
command:
- /usr/bin/bash
- -c
- |
supervisord -c /app/insight2/supervisord.conf
while true;do sleep 100;done
depends_on:
- "web_mysql"
- "web_redis"
links:
- "web_mysql"
- "web_redis"
front:
image: "crediteaseitsec/insight2_front"
restart: always
ports:
- "8000:80"
volumes:
- "./front_logs:/logs"
depends_on:
- "backend"