-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (59 loc) · 1.24 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
version: '3'
networks:
laravel_network:
name: laravel_network
volumes:
mysql-data:
services:
php:
container_name: php-${APP_NAME}
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/var/www/${APP_NAME}
ports:
- "9000:900"
networks:
- laravel_network
nginx:
container_name: nginx-${APP_NAME}
image: nginx:1.23.3-alpine
restart: unless-stopped
ports:
- "8080:80"
networks:
- laravel_network
volumes:
- ./:/var/www/${APP_NAME}
- ./default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
mysql:
container_name: mysql-${APP_NAME}
image: mysql
restart: unless-stopped
volumes:
- mysql-data:/var/lib/mysql
environment:
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
ports:
- "3306:3306"
networks:
- laravel_network
phpmyadmin:
container_name: phpmyadmin-${APP_NAME}
image: phpmyadmin/phpmyadmin
ports:
- "7000:80"
links:
- mysql:db
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
UPLOAD_LIMIT: 3000000000
networks:
- laravel_network
#Docker Networks
# phpmyadmin: