-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·50 lines (47 loc) · 1021 Bytes
/
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
version: '3'
services:
laravel-app:
container_name: laravel-app
build:
context: ./
dockerfile: Dockerfile
working_dir: /var/www/app
restart: unless-stopped
depends_on:
- mysql
- elasticsearch
ports:
- "${PORT_APP}:80"
volumes:
- ./app/storage/logs/nginx:/var/log/nginx
- ./.docker/.composer:/root/.composer
networks:
- laravel
mysql:
image: mysql
container_name: mysql
restart: unless-stopped
tty: true
ports:
- "3308:3306"
environment:
MYSQL_DATABASE: laravel_docker
MYSQL_USER: user
MYSQL_PASSWORD: user
MYSQL_ROOT_PASSWORD: user
SERVICE_TAGS: dev
SERVICE_NAME: mysql
networks:
- laravel
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.12.0
container_name: elasticsearch
environment:
- discovery.type=single-node
ports:
- '9200:9200'
networks:
- laravel
networks:
laravel:
driver: bridge