-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
57 lines (52 loc) · 1.07 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
version: '3'
services:
nginx:
image: tonyyb/laravel-nginx:latest
restart: unless-stopped
tty: true
ports:
- "8080:80"
- "8043:443"
volumes:
- ./:/var/www
networks:
- app-network
depends_on:
- php-fpm
php-fpm:
image: tonyyb/laravel-php:latest
restart: unless-stopped
tty: true
volumes:
- ./:/var/www
networks:
- app-network
environment:
APP_ENV: "production"
APP_DEBUG: "false"
DB_CONNECTION: "mysql"
DB_HOST: "mysql"
DB_DATABASE: ${MYSQL_DATABASE}
DB_USERNAME: ${MYSQL_USER}
DB_PASSWORD: ${MYSQL_PASSWORD}
mysql:
image: mysql:5.7
restart: unless-stopped
tty: true
ports:
- "8006:3306"
volumes:
- mysqldata:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
networks:
- app-network
volumes:
mysqldata:
driver: local
networks:
app-network:
driver: bridge