-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-dev.yml
41 lines (40 loc) · 1.13 KB
/
docker-compose-dev.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
version: "3"
services:
web:
image: miholeus/nginx:latest
volumes:
- .:/app:delegated
- ./support/nginx/symphonia.dev:/etc/nginx/conf.d/default.conf
ports:
- "8080:80"
links:
- php
php:
image: miholeus/php71:development
tty: true
depends_on:
- database
environment:
- SYMFONY_ENV=${ENV}
- SYMFONY_DEBUG=1
- SYMFONY__DATABASE__USER=${DB_USER}
- SYMFONY__DATABASE__NAME=${DB_NAME}
- SYMFONY__DATABASE__PASS=${DB_PASS}
- SYMFONY__APP__SECRET=${APP_SECRET}
volumes:
- ./:/app
- ./support/php/log.conf:/usr/local/etc/php-fpm.d/zz-log.conf
working_dir: /app
database:
build: 'support/database'
volumes:
- mysql_db_data:/var/lib/mysql
ports:
- "3307:3306"
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASS}
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASS}
volumes:
mysql_db_data: