-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
60 lines (53 loc) · 1.27 KB
/
docker-compose.yaml
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
version: '3.7'
services:
blackfire:
container_name: blackfire
environment:
BLACKFIRE_CLIENT_ID: ${BLACKFIRE_CLIENT_ID}
BLACKFIRE_CLIENT_TOKEN: ${BLACKFIRE_CLIENT_TOKEN}
BLACKFIRE_SERVER_ID: ${BLACKFIRE_SERVER_ID}
BLACKFIRE_SERVER_TOKEN: ${BLACKFIRE_SERVER_TOKEN}
image: blackfire/blackfire
mysql:
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
image: mysql:5.7
restart: always
volumes:
- db_data:/var/lib/mysql
nginx:
container_name: nginx
image: nginx
links:
- php
ports:
- ${NGINX_PORT}:80
restart: always
volumes:
- .:${SYMFONY_ROOT_DIR}:cached
- './docker/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf'
working_dir: ${SYMFONY_ROOT_DIR}
php:
build: docker/php
container_name: php
depends_on:
- mysql
links:
- mysql
ports:
- ${PHP_PORT}:9000
restart: always
volumes:
- .:${SYMFONY_ROOT_DIR}:cached
working_dir: ${SYMFONY_ROOT_DIR}
varnish:
build: docker/varnish
container_name: varnish
depends_on:
- nginx
ports:
- ${VARNISH_PORT}:80
restart: always
volumes:
db_data: