-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.php-apache.yml
56 lines (50 loc) · 1.04 KB
/
docker-compose.php-apache.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
version: "3"
volumes:
db-store:
services:
web-app:
build:
context: .
dockerfile: ./docker/php-apache/local/Dockerfile
ports:
- "8080:80"
volumes:
- ./backend:/var/www/html
networks:
- net1
db:
build:
context: .
dockerfile: ./docker/mysql/Dockerfile.dev
ports:
- 3308:3306
environment:
MYSQL_DATABASE: template-project
MYSQL_USER: template-project
MYSQL_PASSWORD: template-project
MYSQL_ROOT_PASSWORD: template-project
TZ: 'Asia/Tokyo'
volumes:
- type: volume
source: db-store
target: /var/lib/mysql
volume:
nocopy: true
networks:
- net1
phpmyadmin:
links:
- db
image: phpmyadmin/phpmyadmin
platform: linux/amd64
environment:
- PMA_ARBITRARY=1
- PMA_HOST=db
- PMA_USER=template-project
- PMA_PASSWORD=template-project
ports:
- "18080:80"
networks:
- net1
networks:
net1: