-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (36 loc) · 960 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
34
35
36
version: '3.8'
services:
php-apache-environment:
container_name: php-apache
image: php:8.0-apache
build:
context: .
dockerfile: php/Dockerfile
depends_on:
- db
volumes:
- ./php/src:/var/www/html/
- ./php/php.ini:/usr/local/etc/php/php.ini
ports:
- 8000:80
db:
container_name: db
image: mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: db
MYSQL_USER: myuser
MYSQL_PASSWORD: mypass
MYSQL_AUTHENTICATION_PLUGIN: mysql_native_password
ports:
- "9906:3306"
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- '8080:80'
restart: always
environment:
PMA_HOST: db
depends_on:
- db