-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·57 lines (52 loc) · 1.21 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
version: "3.5"
services:
nginx:
image: nginx:latest
container_name: lemp_nginx
restart: always
ports:
- "80:80"
volumes:
- "./config/nginx/:/etc/nginx/conf.d/"
- "./logs:/var/log/nginx/"
- "./www/:/var/www/"
php:
container_name: lemp_php
restart: always
build:
context: ./build
dockerfile: php.Dockerfile
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- "./www/:/var/www/"
mysql:
image: mysql:8.0
container_name: lemp_mysql
restart: always
cap_add:
- SYS_NICE
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "false"
MYSQL_ROOT_PASSWORD: "root"
volumes:
- "./data/mysql/:/var/lib/mysql/"
- "./config/mysql/:/etc/mysql/conf.d"
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: lemp_phpmyadmin
restart: always
ports:
- "8080:80"
environment:
PMA_HOST: mysql
# elasticsearch:
# image: elasticsearch:7.9.3
# container_name: lemp_elasticsearch
# restart: always
# environment:
# - discovery.type=single-node
# ports:
# - "9200:9200"
# volumes:
# - "./data/elasticsearch/:/usr/share/elasticsearch/data/"