-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·67 lines (61 loc) · 1.65 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
version: '2'
services:
nginx:
image: prooph/nginx:www
ports:
- 8080:80
- 443:443
links:
- php:php
volumes:
- .:/var/www
php:
image: prooph/php:7.1-fpm
volumes:
- .:/var/www
environment:
#@TODO: move to app.env file
# Set PROOPH_ENV=prod for production
- PROOPH_ENV=dev
- PDO_DSN=pgsql:host=postgres port=5432 dbname=event_machine
- PDO_USER=postgres
- PDO_PWD=
- MONGO_SERVER=mongodb://mongodb:27017
- MONGO_DB_NAME=event_machine
aggregate_projection:
image: prooph/php:7.1-cli
volumes:
- .:/app
depends_on:
- postgres
- mongodb
command: php /app/bin/aggregate_projection.php
# Needed so that projection is automatically restarted when new events are registered in event machine
# which are not yet known in the long-running projection process, see https://github.com/proophsoftware/event-machine-skeleton/issues/3
restart: on-failure
environment:
#@TODO: move to app.env file
# Set PROOPH_ENV=prod for production
- PROOPH_ENV=dev
- PDO_DSN=pgsql:host=postgres port=5432 dbname=event_machine
- PDO_USER=postgres
- PDO_PWD=
- MONGO_SERVER=mongodb://mongodb:27017
- MONGO_DB_NAME=event_machine
rabbit:
image: rabbitmq:3-management
ports:
- 8081:15672
- 15674:15674
postgres:
image: postgres:alpine
ports:
- 5432:5432
environment:
- POSTGRES_DB=event_machine
volumes:
- ./env/postgres/initdb.d:/docker-entrypoint-initdb.d:ro
mongodb:
image: mongo
ports:
- 27017:27017