-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
71 lines (71 loc) · 1.44 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '3.7'
services:
mysql:
image: "mysql/mysql-server:5.7"
environment:
TZ: "Asia/Shanghai"
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
MYSQL_ROOT_HOST: "%"
MYSQL_DATABASE: "actionview"
networks:
- net
volumes:
- mysql-data:/var/lib/mysql
restart: "always"
redis:
image: "redis"
command:
- "redis-server"
- "--databases 256"
networks:
- net
volumes:
- redis-data:/data
restart: "always"
frontend:
image: "actionview-fe:latest"
build:
context: "."
dockerfile: "front-end.Dockerfile"
depends_on:
- actionview
ports:
- "10011:8080"
networks:
- net
restart: "always"
actionview:
image: "hyperf/biz-skeleton:latest"
build:
context: "."
depends_on:
- mysql
- redis
- elasticsearch
environment:
APP_ENV: "${APP_ENV:-prod}"
DB_HOST: "mysql"
REDIS_HOST: "redis"
ELASTIC_SEARCH_HOST: "http://elasticsearch:9200"
SCAN_CACHEABLE: "(true)"
networks:
- net
restart: "always"
deploy:
replicas: 1
elasticsearch:
image: "elasticsearch:5-alpine"
environment:
discovery.type: "single-node"
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
networks:
- net
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
restart: "always"
networks:
net:
volumes:
mysql-data:
redis-data:
elasticsearch-data: