-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
132 lines (123 loc) · 3.09 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# Docker Lemp for Magento applications
version: '3.1'
services:
nginx:
container_name: app_nginx
image: nginx:latest
# build:
# context: .
# dockerfile: ./nginx/${NGINX_VERSION}/Dockerfile
working_dir: ${WORKING_DIR}
links:
- php:app_php@
volumes:
- ./nginx/magento.conf:/etc/nginx/conf.d/default.conf:ro,cached
- ./nginx/nginx.sample.conf:/etc/nginx/sites-available/nginx.sample.conf:ro,cached
- ${WWW_DIR}:${WORKING_DIR}
depends_on:
- php
- db
networks:
- esnet
ports:
- 80:80
php:
container_name: app_php
image: lima195/php-fpm-${PHP_VERSION}:lastest
# command: sh -c "/home/john/go/bin/MailHog"
# Develop porpuses
# build:
# context: .
# dockerfile: ./php/${PHP_VERSION}/Dockerfile
user: john
working_dir: ${WORKING_DIR}
volumes:
- ./php/${PHP_VERSION}/${LOCAL_PHP_INI}:${DOCKER_PHP_INI}
- ./php/${PHP_VERSION}/${LOCAL_PHP_XDEBUG_INI}:${DOCKER_PHP_XDEBUG_INI}
- ${WWW_DIR}:${WORKING_DIR}
depends_on:
- db
networks:
- esnet
ports:
- 8025:8025
adminer:
container_name: app_adminer
image: adminer
links:
- db
networks:
- esnet
ports:
- 8080:8080
db:
container_name: app_mysql
image: mysql:${MYSQL_VERSION}
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
volumes:
- ./volumes/mysql:/var/lib/mysql
networks:
- esnet
ports:
- 3306:3306
elasticsearch:
container_name: app_elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION}
environment:
- xpack.security.enabled=false
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
#- elasticsearchvolume:/usr/share/elasticsearch/data
- ./volume-elasticsearch/data:/usr/share/elasticsearch/data
- ./volume-elasticsearch/plugins:/usr/share/elasticsearch/plugins
networks:
- esnet
# rabbitmq:
# container_name: app_rabbitmq
# image: rabbitmq:3-management-alpine
# environment:
# RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER}
# RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASS}
# ports:
# - 5672:5672
# - 15672:15672
# volumes:
# - rabbitmqvolume:/var/lib/rabbitmq/
# - rabbitmqvolume:/var/log/rabbitmq
# networks:
# - esnet
# redis:
# container_name: app_redis
# image: redis:${REDIS_VERSION}
# command: redis-server --requirepass ${REDIS_PASS}
# volumes:
# - ./volumes/redis/data:/data
# networks:
# - esnet
# ports:
# - 6379:6379
# - 6380:6380
# - 6381:6381
volumes:
elasticsearchvolume:
driver: local
# rabbitmqvolume:
# driver: local
# mysqlvolume:
# driver: local
networks:
esnet: