forked from aikar/timings
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
57 lines (53 loc) · 1.33 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:
build:
context: .
dockerfile: Dockerfile-nginx
image: timings-nginx
ports:
- "127.0.0.1:7081:80"
# volumes:
# - "./:/var/www/html/timings"
depends_on:
- phpfpm
restart: unless-stopped
phpfpm:
image: timings-phpfpm
build:
context: .
dockerfile: Dockerfile-phpfpm
env_file:
- .env
# volumes:
# - "./:/var/www/html/timings"
environment:
# Don't expose MySQL root password to PHP
MYSQL_ROOT_PASSWORD: ''
expose:
- 9000
depends_on:
- mysql
restart: unless-stopped
mysql:
build: database/
image: timings-mysql
environment:
#Unset MYSQL_HOST to allow MySQL to start
#https://github.com/docker-library/mysql/issues/82#issuecomment-230292558
MYSQL_HOST: ''
env_file:
- .env
volumes:
- mysql:/var/lib/mysql
restart: unless-stopped
#pma:
# image: phpmyadmin/phpmyadmin:4.8
# depends_on:
# - mysql
# ports:
# - "127.0.0.1:7082:80"
# environment:
# PMA_HOST: 'mysql'
volumes:
mysql: