-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
74 lines (68 loc) · 1.8 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
72
73
74
version: "3"
services:
web:
build: .
container_name: celsius3_web
network_mode: host
volumes:
- .:/var/www/html
depends_on:
- mysql
- elasticsearch
- redis
mysql:
image: mysql:5
container_name: celsius3_mysql
network_mode: host
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "celsius3"
MYSQL_USER: "celsius3_usr"
MYSQL_PASSWORD: "celsius3_pass"
volumes:
- c3data:/var/lib/mysql
- c3logs:/var/log/mysql
- .docker/mysql:/docker-entrypoint-initdb.d
elasticsearch:
image: elasticsearch:6.8.14
container_name: celsius3_elasticsearch
network_mode: host
environment:
discovery.type: single-node
volumes:
- c3elastic:/usr/share/elasticsearch/data
redis:
image: redis:alpine
container_name: celsius3_redis
network_mode: host
volumes:
- c3redis:/data
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: celsius3_phpmyadmin
ports:
- 8000:80
environment:
PMA_HOST: "172.17.0.1"
PMA_PORT: "3306"
PMA_USER: "celsius3_usr"
PMA_PASSWORD: "celsius3_pass"
depends_on:
- mysql
deploy:
image: docker
container_name: celsius3_deploy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- .docker/deploy.sh:/bin/deploy.sh
depends_on:
- web
privileged: true
entrypoint: /bin/sh
command: /bin/deploy.sh
volumes:
c3data:
c3logs:
c3redis:
c3elastic: