-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
76 lines (69 loc) · 1.61 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
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
# Default container setup
# Simple single server setup
# Uses Debian Jessie and official images when possible
dbvol:
image: debian:jessie
volumes:
- ./volumes/mysql:/var/lib/mysql
ezpublishvol:
image: debian:jessie
volumes:
- ./volumes/ezpublish:/var/www
db1:
image: mariadb:latest
volumes_from:
- dbvol
volumes:
- ./resources/database_character_set.sh:/docker-entrypoint-initdb.d/database_character_set.sh
environment:
- MYSQL_ROOT_PASSWORD=mysecretrootpassword
- MYSQL_USER=ezp
- MYSQL_PASSWORD
- MYSQL_DATABASE=ezp
- TERM=dumb
phpfpm1:
# docker compose does not allow to specify container name, this is what it generates, might be fixed in 1.3
image: ezsystems/ezphp
links:
- db1:db
# - solr1:solr
volumes_from:
- ezpublishvol
environment:
- EZ_KICKSTART
- EZ_KICKSTART_FROM_TEMPLATE
- EZ_MAILER_TRANSPORT
- EZ_MAILER_HOST
- EZ_MAILER_USER
- EZ_MAILER_PASSWORD
- SYMFONY_ENV
- MYSQL_PASSWORD
web1:
image: nginx
links:
- phpfpm1:php_fpm
volumes_from:
- ezpublishvol
ports:
- "8080:80"
environment:
- SYMFONY_ENV
- BASEDIR=/var/www
- MAX_BODY_SIZE=20
- FASTCGI_PASS=php_fpm:9000
- TIMEOUT=190
- VARNISH_ENABLED
- DOCKER0NET
command: /bin/bash -c "cd /var/www && cp -a doc/nginx/ez_params.d /etc/nginx && bin/vhost.sh --template-file=doc/nginx/vhost.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
#
#varnish:
# build: dockerfiles/internal/varnish
# links:
# - phpfpm:php_fpm
# - nginx:nginx
# volumes_from:
# - ezpublishvol
# ports:
# - "8081:80"
# environment:
# - VARNISH_ENABLED