forked from eko/docker-symfony
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (43 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
43 lines (43 loc) · 1.11 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
version: '2'
services:
db:
image: mariadb:5.5
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: 'cakephp'
MYSQL_DATABASE: 'cakephp'
php:
build: ./php-fpm
expose:
- "9000"
volumes:
- ./cakephp:/www
- ./logs/cakephp:/www/app/logs
links:
- db
environment:
DEBUG: 'true'
DB_HOST: 'db' # Leave this as 'db' to utilize MySQL container(s)
DB_USERNAME: 'root'
DB_PASSWORD: 'cakephp'
DB_DATABASE: 'cakephp'
DB_SEED: 'DatabaseSeed'
EMAIL_HOST: 'localhost'
EMAIL_PORT: '25'
EMAIL_TIMEOUT: '30'
EMAIL_USERNAME: 'user'
EMAIL_PASSWORD: 'secret'
EMAIL_TLS: 'false'
REPO: 'https://github.com/Dynamictivity/cakephp-bookmarker.git'
REPO_HOST: 'github.com'
nginx:
build: ./nginx
ports:
- "80:80"
links:
- php
volumes_from:
- php
volumes:
- ./logs/nginx/:/var/log/nginx