-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
33 lines (33 loc) · 974 Bytes
/
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
version: '3.3'
services:
php-apache_env:
container_name: php-apache
build:
context: .
dockerfile: Dockerfile
depends_on:
- db
volumes:
- .:/var/www/html
ports:
- 80:80
db:
container_name: db
image: mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: 123
volumes:
- db-data:/var/lib/mysql
ports:
- 3306:3306
phpmyadmin:
container_name: phpmyadmin
image: phpmyadmin
restart: always
ports:
- 8080:80
environment:
- PMA_ARBITRARY=1
volumes:
db-data: