-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.local.yml
90 lines (84 loc) · 1.82 KB
/
docker-compose.local.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
version: "3"
services:
# Nginx web server
webserver:
image: nginx:alpine
container_name: webserver
restart: unless-stopped
tty: true
ports:
- "80:80"
- "443:443"
volumes:
- ./:/var/www
- ./docker/nginx/conf.d/:/etc/nginx/conf.d/
networks:
- app-network
# PHP-fpm server
app:
build:
context: .
dockerfile: Dockerfile
image: varun/laravel-php-fpm
container_name: app
restart: unless-stopped
tty: true
environment:
SERVICE_NAME: app
SERVICE_TAGS: dev
TERM: xterm
APP_ENV: local
XDEBUG_CONFIG: idekey=PHPSTORM
working_dir: /var/www
volumes:
- ./:/var/www
- ./docker/php/local.ini:/usr/local/etc/php/conf.d/local.ini
networks:
- app-network
## MYSQL db
db:
image: mysql:5.7.22
container_name: db
restart: unless-stopped
tty: true
# ports:
# - "3306:3306"
volumes:
- ./docker-data/mysql:/var/lib/mysql
- ./docker/mysql/my.cnf:/etc/mysql/my.cnf
environment:
MYSQL_DATABASE: laravel
MYSQL_ROOT_PASSWORD: your_mysql_root_password
SERVICE_TAGS: dev
SERVICE_NAME: mysql
networks:
- app-network
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
environment:
PMA_HOST: db
ports:
- 8001:80
networks:
- app-network
# # You can enable this if don't want to host jaeger outside
jaeger:
# container_name: laravel_jaeger
image: jaegertracing/all-in-one:1.6
restart: always
ports:
# - 5775:5775/udp
- 6831:6831/udp
- 6832:6832/udp
# - 5778:5778
- 16686:16686
# - 14268:14268
# - 9411:9411
environment:
COLLECTOR_ZIPKIN_HTTP_PORT: 9411
networks:
- app-network
networks:
app-network:
driver: bridge