-
Notifications
You must be signed in to change notification settings - Fork 52
/
docker-compose.yml
85 lines (78 loc) · 1.84 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
77
78
79
80
81
82
83
84
85
version: '2'
services:
mysql:
image: mysql:5.7
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=dev
- MYSQL_USER=dev
- MYSQL_PASSWORD=dev
- MYSQL_DATABASE=todo
volumes:
- ./vendor/prooph/pdo-event-store/scripts/mysql:/docker-entrypoint-initdb.d
nginx:
image: prooph/nginx:www
ports:
- 8080:80
- 443:443
- 10081:10081
- 10082:10082
links:
- php:php
volumes:
- .:/var/www
php:
image: prooph/php:7.1-fpm
volumes:
- .:/var/www
depends_on:
- mysql
environment:
- PROOPH_ENV=development
projection_todo:
image: prooph/php:7.1-cli
entrypoint:
- /app/.docker/wait_for_sql.sh
volumes:
- .:/app
depends_on:
- mysql
command: php bin/console event-store:projection:run todo_projection
projection_todo_reminder:
image: prooph/php:7.1-cli
entrypoint: /app/.docker/wait_for_sql.sh
volumes:
- .:/app
depends_on:
- mysql
command: php bin/console event-store:projection:run todo_reminder_projection
projection_user:
image: prooph/php:7.1-cli
entrypoint: /app/.docker/wait_for_sql.sh
volumes:
- .:/app
depends_on:
- mysql
command: php bin/console event-store:projection:run user_projection
# Uncomment when using snapshotters
# @TODO: Implement snapshot projections, see proophessor-do
# snapshotter_todo:
# image: prooph/php:7.1-cli
# entrypoint: /app/.docker/wait_for_sql.sh
# volumes:
# - .:/app
# depends_on:
# - mysql
# - mongodb
# command: php /app/bin/todo_snapshotter.php
#
# snapshotter_user:
# image: prooph/php:7.1-cli
# entrypoint: /app/.docker/wait_for_sql.sh
# volumes:
# - .:/app
# depends_on:
# - mysql
# - mongodb
# command: php /app/bin/user_snapshotter.php