-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (56 loc) · 1.19 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
version: '3.8'
networks:
laravel:
services:
nginx:
build:
context: .
dockerfile: nginx.dockerfile
container_name: ${APP_SHORT_NAME}_nginx
restart: unless-stopped
ports:
- "${PORT_SERVER}:80"
volumes:
- ./:/var/www/html
depends_on:
- mysql
- php
networks:
- laravel
mysql:
image: mysql:8.0
container_name: ${APP_SHORT_NAME}_mysql
restart: unless-stopped
ports:
- "${PORT_DATABASE}:3306"
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
volumes:
- ./docker-compose/mysql:/var/lib/mysql
networks:
- laravel
php:
build:
context: .
dockerfile: php.dockerfile
container_name: ${APP_SHORT_NAME}_php
restart: unless-stopped
volumes:
- ./:/var/www/html
networks:
- laravel
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: ${APP_SHORT_NAME}_phpmyadmin
environment:
PMA_HOST: mysql
ports:
- ${PORT_PHPMYADMIN}:80
restart: unless-stopped
depends_on:
- mysql
networks:
- laravel