-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
135 lines (126 loc) · 2.61 KB
/
docker-compose.yml
File metadata and controls
135 lines (126 loc) · 2.61 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
version: '3.3'
services:
proxy:
image: jwilder/nginx-proxy
container_name: RB_nginx-proxy
ports:
- 80:80
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
restart: always
healthcheck:
interval: 30s
timeout: 10s
retries: 5
rankingbot:
build: ./rankingbot
container_name: RB_rankingbot
volumes:
- ./rankingbot:/root/rankingbot
ports:
- 8888:80
depends_on:
- db
- rest
environment:
PYTHONUNBUFFERED: 0
tty: true
healthcheck:
interval: 30s
timeout: 10s
retries: 5
db:
image: mysql:5.7
container_name: RB_mysql_host
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: my_database
MYSQL_USER: docker
MYSQL_PASSWORD: docker
TZ: 'Asia/Tokyo'
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
- ./docker/db/data:/var/lib/mysql
- ./docker/db/my.cnf:/etc/mysql/conf.d/my.cnf
- ./db/sql:/docker-entrypoint-initdb.d
ports:
- 3306:3306
healthcheck:
test: ["CMD-SHELL", "ping localhost || exit 1"]
retries: 3
timeout: "5s"
interval: "60s"
phpmyadmin:
container_name: RB_phpmyadmin
image: phpmyadmin/phpmyadmin
environment:
- PMA_ARBITRARY=1
- PMA_HOSTS=mysql_host
- PMA_USER=root
- PMA_PASSWORD=root
- VIRTUAL_HOST=web.mydomain.com
- VIRTUAL_PORT=8080
ports:
- 8080:80
#links:
#- mysql_host
healthcheck:
interval: 30s
timeout: 10s
retries: 5
redis:
container_name: RB_redis
image: redis:3.0.5
environment:
TZ: Asia/Tokyo
ports:
- 6379:6379
restart: always
tty: true
volumes:
- "./redis/data:/data"
command: redis-server --appendonly yes
healthcheck:
interval: 30s
timeout: 10s
retries: 5
rest:
container_name: RB_rest
build: rest
ports:
- 5001:5000
expose:
- 5000
restart: always
environment:
VIRTUAL_HOST: tgu-hq.pink
VIRTUAL_PORT: 5000
tty: true
healthcheck:
interval: 30s
timeout: 10s
retries: 5
analysis:
container_name: RB_analysis
build: ./analysis
volumes:
- ./analysis:/root/analysis
tty: true
healthcheck:
interval: 30s
timeout: 10s
retries: 5
ci_test:
container_name: RB_test_cont
build: ./tool
volumes:
- ./tool/:/tool/
tty: true
healthcheck:
interval: 30s
timeout: 10s
retries: 5
networks:
default:
external:
name: rank_net