forked from NafaaAzaiez/symfony-rest-api-init
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml.dist
59 lines (53 loc) · 1.62 KB
/
docker-compose.override.yml.dist
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
57
58
59
version: "3.5"
services:
database:
image: mysql:8.0
command: mysqld --default-authentication-plugin=mysql_native_password
volumes:
- 'mysql_data:/var/lib/mysql'
environment:
APP_ENV: dev
MYSQL_DATABASE: symfony-rest-api-init
MYSQL_USER: root
MYSQL_PASSWORD: root
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
nginx:
image: nginx:1.16-alpine
ports:
- '8080:80'
volumes:
- './public:/var/www/api/public:ro'
- './docker/nginx/default.conf:/etc/nginx/conf.d/default.conf'
php:
image: symfony-rest-api-init-php_fpm
working_dir: /var/www/api
depends_on:
- database
environment:
APP_ENV: dev
ENABLED_EXCEPTION_DEV: 1
PHP_XDEBUG_ENABLED: 1 # Set 1 to enable.
XDEBUG_CONFIG: "remote_port=9000 remote_autostart=1 remote_host=127.0.0.1 idekey=PHPSTORM"
PHP_IDE_CONFIG: "serverName=debugServer"
volumes:
- .:/var/www/api
- ./docker/fpm/pool.d/application.conf:/opt/docker/etc/php/fpm/pool.d/application.conf
- ./docker/fpm/www.conf:/usr/local/etc/php-fpm.d/www.conf
- ./var:/var/www/api/var
phpmyadmin:
image: phpmyadmin/phpmyadmin
depends_on:
- database
ports:
- '8082:80'
environment:
MYSQL_ROOT_PASSWORD: root
PMA_HOST: database
volumes:
mysql_data:
driver: local
networks:
default:
name: app-network