-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
117 lines (110 loc) · 2.59 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
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
version: '3'
services:
#PHP Service
app:
build:
context: .
dockerfile: Dockerfile
image: devilbox/php-fpm-8.0
restart: unless-stopped
tty: true
volumes:
- ./:/var/www
- ./php/local.ini:/usr/local/etc/php/conf.d/local.ini
environment:
SERVICE_NAME: app
SERVICE_TAGS: dev
working_dir: /var/www
networks:
- app-network
depends_on:
- webserver
#Nginx Service
webserver:
image: nginx:alpine
restart: unless-stopped
tty: true
ports:
- "8000:80"
volumes:
- ./:/var/www
- ./nginx/conf.d/:/etc/nginx/conf.d/
networks:
- app-network
#MySQL Service
mysql_service:
image: mysql:5.7
restart: unless-stopped
tty: true
ports:
- "3306:3306"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: true
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
SERVICE_TAGS: dev
SERVICE_NAME: mysql
volumes:
- database_data:/var/lib/mysql
- ./mysql/my.cnf:/etc/mysql/my.cnf
networks:
- app-network
phpmyadmin:
image: phpmyadmin
restart: unless-stopped
ports:
- "8080:80"
environment:
- UPLOAD_LIMIT=100000000
- PMA_ARBITRARY=0
- PMA_PORT=3306
- PMA_HOST=mysql_service
- PMA_USER=${DB_USERNAME}
- PMA_PASSWORD=${DB_PASSWORD}
networks:
- app-network
depends_on:
- mysql_service
cache_service:
image: redis:alpine
command: redis-server --appendonly yes
networks:
- app-network
ports:
- "6382:6379"
restart: unless-stopped
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.0.1
restart: unless-stopped
# volumes:
# - es_data:/usr/share/elasticsearch/data
environment:
- node.name=elasticsearch
- cluster.name=data_search
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- cluster.initial_master_nodes=elasticsearch
ulimits:
memlock:
soft: -1
hard: -1
ports:
- "9200:9200"
networks:
- app-network
kibana:
image: docker.elastic.co/kibana/kibana:7.0.1
restart: unless-stopped
ports:
- "5601:5601"
#Kibana server is not ready yet
networks:
- app-network
#Docker Networks
networks:
app-network:
driver: bridge
#Volumes
volumes:
database_data:
driver: local