-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml.dist
More file actions
154 lines (146 loc) · 4.81 KB
/
docker-compose.yml.dist
File metadata and controls
154 lines (146 loc) · 4.81 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
version: '2.0'
networks:
development:
driver: bridge
ipam:
config:
- subnet: 10.10.10.0/24
#volumes:
# sf-unison-sync:
# external: true
services:
cli:
image: diegograssato/cli
container_name: cli
tty: true
volumes:
- ${SYMFONY_APP_PATH}:${SYMFONY_SERVER_APP_PATH}
# - sf-unison-sync:/var/www/html:rw # Replace volume to this to use docker-sync for macOS users
working_dir: ${SYMFONY_SERVER_APP_PATH}
environment:
CLI_SYMFONY_DEV: "true"
CLI_CS: "true"
CLI_SONAR: "false"
SYMFONY_SERVER_APP_PATH: ${SYMFONY_SERVER_APP_PATH}
networks:
development:
restart: always
php:
image: diegograssato/php7-alpine:v1.0
container_name: php
volumes:
- ${SYMFONY_APP_PATH}:${SYMFONY_SERVER_APP_PATH}
# - sf-unison-sync:/var/www/html:rw # Replace volume to this to use docker-sync for macOS users
environment:
PHP_XDEBUG_ENABLE: "off"
PHP_XDEBUG_IDE_KEY: "PHPSTORM"
PHP_XDEBUG_PROFILER_ENABLE: "off"
PHP_XDEBUG_PROFILER_OUTPUT_DIR: "/tmp/profile"
PHP_XDEBUG_PROFILER_OUTPUT_NAME: "dtux.out.%p"
PHP_XDEBUG_REMOTE_LOG: "/tmp/php-dtux.log"
PHP_XDEBUG_PORT: "9000"
PHP_XDEBUG_REMOTE_IP: "10.10.10.1"
PHP_XDEBUG_REMOTE_LOG_ENABLE: "off"
PHP_PRODUCTION: "false"
PHP_FPM_PORT: 5000
PHP_OPCACHE_ENABLE: "true"
networks:
development:
ipv4_address: 10.10.10.10
restart: always
nginx:
image: diegograssato/nginx
container_name: web
ports:
- 80:80
- 443:443
volumes:
- ${SYMFONY_APP_PATH}:${SYMFONY_SERVER_APP_PATH}
# - sf-unison-sync:/var/www/html:rw # Replace volume to this to use docker-sync for macOS users
environment:
PHP_FPM_SOCKET: "php:5000"
NGINX_WORKER_PROCESSES: 4
NGINX_CONNECTIONS: 40960 # 4 * 512 * 10
NGINX_DOCUMENT_ROOT: "${SYMFONY_SERVER_APP_PATH}/"
APP_INDEX_FILE: 'app_dev.php'
VIRTUAL_HOST_CONFIG: "{'name':'sf3','domains':['sf3'],'docroot':'web', 'forcessl': 'false', 'model': 'symfony'}"
networks:
development:
ipv4_address: 10.10.10.20
restart: always
mailcatcher:
image: diegograssato/mailcatcher:v1
container_name: ${SYMFONY__MAILER_HOST}
expose:
- ${SYMFONY__MAILER_PORT}
- 1080
ports:
- 1080:1080
environment:
SMTP_PORT: ${SYMFONY__MAILER_PORT}
HTTP_PORT: 1080
networks:
development:
restart: always
mysql:
image: mariadb:5.5.54 # use 10.1.21 or 5.5.54
container_name: ${SYMFONY__DATABASE_HOST}
volumes:
- ${SYMFONY_APP_PATH}/var/data/mysql/.${SYMFONY__DATABASE_HOST}:/var/lib/mysql # Mapping for custom mysql database folder.
expose:
- "3306"
ports:
- "3307:3306"
environment:
MYSQL_ROOT_PASSWORD: ${SYMFONY__DATABASE_ROOT_PASSWORD}
MYSQL_DATABASE: ${SYMFONY__DATABASE_NAME}
MYSQL_USER: ${SYMFONY__DATABASE_USER}
MYSQL_PASSWORD: ${SYMFONY__DATABASE_PASSWORD}
networks:
development:
ipv4_address: 10.10.10.30
restart: always
# postgres:
# image: postgres:9.6.2-alpine
# container_name: ${SYMFONY__DATABASE_HOST}
# restart: always
# volumes:
# - /etc/localtime:/etc/localtime:ro
# environment:
# POSTGRES_DB: ${SYMFONY__DATABASE_NAME}
# POSTGRES_USER: ${SYMFONY__DATABASE_USER}
# POSTGRES_PASSWORD: ${SYMFONY__DATABASE_PASSWORD}
# networks:
# development:
# ipv4_address: 10.10.10.100
phpmyadmin:
container_name: ${SYMFONY__DATABASE_HOST}_admin
image: phpmyadmin/phpmyadmin
links:
- mysql
ports:
- 8001:80
environment:
MYSQL_USERNAME: root
MYSQL_ROOT_PASSWORD: ${SYMFONY__DATABASE_ROOT_PASSWORD}
PMA_ARBITRARY: 1
PMA_HOST: ${SYMFONY__DATABASE_HOST}
PMA_PORT: ${SYMFONY__DATABASE_PORT}
PMA_USER: root
PMA_PASSWORD: ${SYMFONY__DATABASE_ROOT_PASSWORD}
PHP_UPLOAD_MAX_FILESIZE: 1G
PHP_MAX_INPUT_VARS: 1G
networks:
development:
restart: always
redis:
image: redis:alpine
container_name: redis
environment:
SHARED: 'true'
MEMORY: 'false'
ports:
- "6379:6379"
networks:
development:
restart: always