-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
45 lines (42 loc) · 951 Bytes
/
docker-compose.yaml
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
version: '3.8'
services:
# container PHP
my-php:
container_name: php-product
build:
dockerfile: Dockerfile
context: .
hostname: php
volumes:
- e:/web/:/home/web/
# Container Apache2 httpd
my-httpd:
container_name: c-httpd
image: httpd:latest
hostname: httpd
volumes:
- e:/web/:/home/web/
- e:/web/httpd.conf:/usr/local/apache2/conf/httpd.conf
ports:
- 8080:80
- 443:443
# Container phpmyadmin
my-sql:
container_name: mysql-product
image: mysql:latest
hostname: mysql
volumes:
- e:/web/sql:/docker-entrypoint-initdb.d
environment:
- MYSQL_ROOT_PASSWORD=nhat150403
- MYSQL_DATABASE=idor
- MYSQL_USER=cd2
- MYSQL_PASSWORD=nhat
phpmyadmin:
container_name: phpmyadmin
image: phpmyadmin/phpmyadmin:latest
environment:
- PMA_HOST=mysql
- PMA_PORT=3306
ports:
- 8081:80