-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (56 loc) · 1.22 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: '2'
services:
https-portal:
image: steveltn/https-portal:1
ports:
- 80:80
- 443:443
links:
- php
restart: always
environment:
- DOMAINS=lemon.takuru.net -> http://php
- STAGE
php:
build: docker/php
volumes:
- .:/usr/src/myapp
working_dir: /usr/src/myapp/laravel
entrypoint: "php artisan serve --port=80 --host=0.0.0.0"
db:
image: mysql:5.7
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: always
volumes:
- ./docker/mysql/data:/var/lib/mysql:cached
environment:
- MYSQL_ROOT_PASSWORD
- MYSQL_DATABASE
- TZ="Asia/Tokyo"
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
- PMA_ARBITRARY=1
- PMA_HOST=db
- PMA_USER=root
- PMA_PASSWORD=${MYSQL_ROOT_PASSWORD}
ports:
- 127.0.0.1:8080:80
links:
- db
# Analyze用:一旦つかわない
# php:
# build: docker/php
# volumes:
# - ./../:/usr/src/myapp
# working_dir: /usr/src/myapp
# entrypoint: port_analyze/run.sh
# links:
# - db
#
# grafana:
# image: grafana/grafana
# ports:
# - 127.0.0.1:3000:3000
# links:
# - db