-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
67 lines (62 loc) · 1.42 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
version: "3.8"
networks:
laravel:
driver: bridge
services:
app:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
networks:
- laravel
working_dir: /var/www/html
# volumes:
# - ./:/var/www/html
depends_on:
- db
webserver:
image: nginx:1.25-alpine
restart: unless-stopped
ports:
- "${LOCALHOST_PORT}:${WEBSERVER_PORT}"
networks:
- laravel
volumes:
- ./:/var/www/html
- .docker/nginx.conf:/etc/nginx/conf.d/default.conf
db:
image: mysql:8.1
restart: unless-stopped
ports:
- "${DB_PORT}:${DB_PORT}"
networks:
- laravel
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: rootpass
volumes:
- .docker/data/db:/var/lib/mysql
elasticsearch:
image: elasticsearch:8.10.2
restart: unless-stopped
ports:
- "${ELASTICSEARCH_PORT}:${ELASTICSEARCH_PORT}"
- "${ELASTICSEARCH_NODE_PORT}:${ELASTICSEARCH_NODE_PORT}"
networks:
- laravel
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.security.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- .docker/data/elasticsearch:/usr/share/elasticsearch/data
depends_on:
- db