-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
78 lines (74 loc) · 1.71 KB
/
docker-compose.yaml
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
version: '3'
networks:
laravel:
driver: bridge
services:
nginx:
image: nginx:alpine
container_name: nginx
restart: unless-stopped
tty: true
ports:
- "8086:8001"
volumes:
- ./src:/var/www/app
- ./config/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
- mysql
networks:
- laravel
mysql:
platform: linux/amd64
image: mysql
container_name: mysql
restart: unless-stopped
tty: true
ports:
- 3306:3306
volumes:
- ./mysql:/var/lib/mysql
environment:
MYSQL_DATABASE: laravel_docker
MYSQL_USER: user
MYSQL_PASSWORD: user
MYSQL_ROOT_PASSWORD: root
SERVICE_TAGS: dev
SERVICE_NAME: mysql
networks:
- laravel
php:
build:
context: .
dockerfile: ./config/php/Dockerfile
container_name: php
restart: unless-stopped
tty: true
working_dir: /var/www/app
volumes:
- ./src:/var/www/app
ports:
- 9000:9000
networks:
- laravel
phpmyadmin:
image: phpmyadmin
restart: unless-stopped
ports:
- 8001:80
environment:
- PMA_HOST=mysql
networks:
- laravel
mailhog:
image: mailhog/mailhog
container_name: mailhog
restart: unless-stopped
ports:
- "1025:1025"
- "8025:8025"
networks:
- laravel
volumes:
mysql:
driver: local