-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (48 loc) · 1.54 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: '3.5'
volumes:
sf-code:
services:
nginx:
container_name: ${NGINX_CONTAINER_NAME}
image: ${NGINX_CONTAINER_NAME}
build:
context: ./docker/nginx
args:
USER_ID: $USER_ID
NGINX_VERSION: $NGINX_VERSION
ports:
- "8000:80"
volumes:
- ./:/var/www
depends_on:
- php
php:
container_name: ${PHP_CONTAINER_NAME}
image: ${PHP_CONTAINER_NAME}
build:
context: docker/php
args:
USER_ID: $USER_ID
SYMFONY_VERSION: $SYMFONY_VERSION
PHP_VERSION: $PHP_VERSION
environment:
XDEBUG_CONFIG: "mode=debug client_host=host.docker.internal client_port=9003 start_with_request=yes"
PHP_IDE_CONFIG: "serverName=localhost"
volumes:
- ./:/var/www
- ./docker/php/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini:delegated
###> doctrine/doctrine-bundle ###
database:
container_name: ${DB_CONTAINER_NAME}
image: mariadb:${MARIADB_VERSION:-10.6}
environment:
MARIADB_USER: ${MARIADB_USER:-dbuser}
MARIADB_PASSWORD: ${MARIADB_PASSWORD:-dbuser}
MARIADB_ROOT_PASSWORD: ${MARIADB_PASSWORD:-root}
MYSQL_DATABASE: ${MARIADB_DATABASE:-app}
ports:
- "3306:3306"
###< doctrine/doctrine-bundle ###
mailer:
image: schickling/mailcatcher
ports: [1025, 1080]