forked from stevenliebregt/docker-compose-lemp-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (46 loc) · 1.26 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
version: '3'
services:
php:
# image: 'php:7.2-fpm'
build:
context: ./docker
dockerfile: php.Dockerfile
container_name: ${APP_NAME:?err}-php
volumes:
- './app:/var/www/html'
depends_on:
- mariadb
- elasticsearch
nginx:
image: nginx:latest
container_name: ${APP_NAME:?err}-nginx
ports:
- '80:80'
- '443:443'
links:
- 'php'
volumes:
- './app:/var/www/html'
- './config/nginx:/etc/nginx/conf.d'
mariadb:
image: mariadb:10.3.9
container_name: ${APP_NAME:?err}-mariadb
restart: 'on-failure'
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:?err}
volumes:
- ${PWD}
elasticsearch:
container_name: ${APP_NAME:?err}-elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.2
restart: always
ports:
- "9200:9200"
- "9300:9300"
environment:
- node.name=es01
- bootstrap.memory_lock=true
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
volumes:
- ${PWD}