-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
45 lines (42 loc) · 1.2 KB
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.1'
services:
mysql:
image: 'mysql:8.0'
command: --default-authentication-plugin=mysql_native_password
working_dir: /application
volumes:
- './src:/application'
environment:
- MYSQL_ROOT_PASSWORD=pass1234
- MYSQL_DATABASE=php-playground
- MYSQL_USER=playground-user
- MYSQL_PASSWORD=playground-pass1234
ports:
- '3306:3306'
webserver:
image: 'nginx:alpine'
working_dir: /application
volumes:
- './src:/application'
- './phpdocker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf'
ports:
- '80:80'
php-fpm:
build: phpdocker/php-fpm
working_dir: /application
volumes:
- './src:/application'
- './phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/8.1/fpm/conf.d/99-overrides.ini'
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- mysql
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_ARBITRARY: 1
restart: always
depends_on:
- mysql
ports:
- '8001:80'