-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (49 loc) · 1.65 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
services:
#
# Required to run project
#
db:
image: mariadb
container_name: ${DOCKER_CONTAINER_PREFIX}-db
volumes:
- ./docker/data/db:/var/lib/mysql:cached
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ports:
- ${MYSQL_PORT_EXTERNAL}:${MYSQL_PORT}
php:
image: meritoo/php7
container_name: ${DOCKER_CONTAINER_PREFIX}-php
environment:
PHP_DATE_TIMEZONE: ${PHP_DATE_TIMEZONE}
PHP_MEMORY_LIMIT: ${PHP_MEMORY_LIMIT}
volumes:
- ${SYMFONY_APP_PATH}:/var/www/application:cached
- ~/.ssh:/root/.ssh:cached
nginx:
image: meritoo/nginx
container_name: ${DOCKER_CONTAINER_PREFIX}-nginx
environment:
NGINX_PORT: ${NGINX_PORT}
ports:
- ${NGINX_PORT_EXTERNAL}:${NGINX_PORT}
volumes_from:
- php
volumes:
- ./docker/logs/nginx/:/var/log/nginx:cached
- ${NGINX_CERTIFICATE_DIRECTORY}:/etc/nginx/certificate:cached
composer:
image: meritoo/php7
container_name: ${DOCKER_CONTAINER_PREFIX}-composer
entrypoint: php -d memory_limit=-1 /usr/local/bin/composer
volumes:
- ${SYMFONY_APP_PATH}:/var/www/application:cached
console:
image: meritoo/php7
container_name: ${DOCKER_CONTAINER_PREFIX}-console
entrypoint: ./bin/console
volumes:
- ${SYMFONY_APP_PATH}:/var/www/application:cached