forked from Imagick/ImagickDemos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (59 loc) · 1.71 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
version: "3"
services:
imagick_php_backend:
build: docker/php_backend
image: imagick_php_backend:latest
labels:
com.datadoghq.ad.logs: '[{"source": "php", "service": "phpimagick_phpfpm"}]'
volumes:
- .:/var/www
restart: always
imagick_php_backend_debug:
build: docker/php_backend_debug
image: imagick_php_backend_debug:latest
depends_on:
- imagick_php_backend
labels:
com.datadoghq.ad.logs: '[{"source": "php", "service": "phpimagick_phpfpm_debug"}]'
volumes:
- .:/var/www
restart: always
installer:
build: docker/installer
environment:
- COMPOSER_CACHE_DIR=/var/app/var/cache/composer
- COMPOSER_ALLOW_SUPERUSER=1
labels:
com.datadoghq.ad.logs: '[{"source": "php", "service": "phpimagick_installer"}]'
volumes:
- .:/var/www
redis:
image: redis:4.0.6
labels:
com.datadoghq.ad.logs: '[{"source": "redis", "service": "phpimagick_redis"}]'
volumes:
- ./docker/redis/redis.conf:/usr/local/etc/redis/redis.conf
restart: always
web_server:
build: docker/web_server
image: imagick_web_server:latest
command: ["/usr/sbin/nginx", "-c", "/etc/config/nginx.conf"]
depends_on:
- imagick_php_backend
labels:
com.datadoghq.ad.logs: '[{"source": "nginx", "service": "phpimagick_nginx"}]'
volumes:
- .:/var/www
- ./docker/web_server/config:/etc/config
restart: always
workers:
build: docker/background_worker
image: imagick_php_worker:latest
depends_on:
- redis
- imagick_php_backend
labels:
com.datadoghq.ad.logs: '[{"source": "php", "service": "phpimagick_supervisord"}]'
volumes:
- .:/var/www
restart: always