forked from php-enqueue/enqueue-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
151 lines (133 loc) · 4.02 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
version: '2'
services:
dev:
# when image publishing gets sorted:
# image: enqueue/dev:${PHP_VERSION:-7.4}
build:
context: docker
args:
PHP_VERSION: "${PHP_VERSION:-7.4}"
depends_on:
- rabbitmq
- mysql
- postgres
- redis
- beanstalkd
- gearmand
- kafka
- zookeeper
- google-pubsub
- rabbitmqssl
- mongo
- thruway
- localstack
volumes:
- './:/mqdev'
environment:
- AMQP_DSN=amqp://guest:guest@rabbitmq:5672/mqdev
- RABBITMQ_AMQP_DSN=amqp+rabbitmq://guest:guest@rabbitmq:5672/mqdev
- AMQPS_DSN=amqps://guest:guest@rabbitmqssl:5671
- STOMP_DSN=stomp://guest:guest@rabbitmq:61613/mqdev
- RABITMQ_STOMP_DSN=stomp+rabbitmq://guest:guest@rabbitmq:61613/mqdev
- RABBITMQ_MANAGMENT_DSN=http://guest:guest@rabbitmq:15672/mqdev
- DOCTRINE_DSN=mysql://root:rootpass@mysql/mqdev
- DOCTRINE_POSTGRES_DSN=postgres://postgres:pass@postgres/template1
- MYSQL_DSN=mysql://root:rootpass@mysql/mqdev
- POSTGRES_DSN=postgres://postgres:pass@postgres/postgres
- PREDIS_DSN=redis+predis://redis
- PHPREDIS_DSN=redis+phpredis://redis
- GPS_DSN=gps:?projectId=mqdev&emulatorHost=http://google-pubsub:8085
- SQS_DSN=sqs:?key=key&secret=secret®ion=us-east-1&endpoint=http://localstack:4566&version=latest
- SNS_DSN=sns:?key=key&secret=secret®ion=us-east-1&endpoint=http://localstack:4566&version=latest
- SNSQS_DSN=snsqs:?key=key&secret=secret®ion=us-east-1&sns_endpoint=http://localstack:4566&sqs_endpoint=http://localstack:4566&version=latest
- WAMP_DSN=wamp://thruway:9090
- REDIS_HOST=redis
- REDIS_PORT=6379
- AWS_SQS_KEY=key
- AWS_SQS_SECRET=secret
- AWS_SQS_REGION=us-east-1
- AWS_SQS_ENDPOINT=http://localstack:4566
- AWS_SQS_VERSION=latest
- BEANSTALKD_DSN=beanstalk://beanstalkd:11300
- GEARMAN_DSN=gearman://gearmand:4730
- MONGO_DSN=mongodb://mongo
- RDKAFKA_HOST=kafka
- RDKAFKA_PORT=9092
rabbitmq:
image: 'enqueue/rabbitmq:3.7'
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
- RABBITMQ_DEFAULT_VHOST=mqdev
ports:
- "15677:15672"
rabbitmqssl:
image: 'enqueue/rabbitmq-ssl:latest'
environment:
- 'RABBITMQ_DEFAULT_USER=guest'
- 'RABBITMQ_DEFAULT_PASS=guest'
beanstalkd:
image: 'jonbaldie/beanstalkd'
gearmand:
image: 'artefactual/gearmand'
redis:
image: 'redis:3'
ports:
- "6379:6379"
mysql:
image: mysql:5.7
platform: linux/amd64
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_DATABASE: mqdev
postgres:
image: postgres
environment:
POSTGRES_PASSWORD: pass
generate-changelog:
image: enqueue/generate-changelog:latest
# build: { context: docker, dockerfile: Dockerfile.generate-changelog }
volumes:
- ./:/mqdev
zookeeper:
image: 'wurstmeister/zookeeper'
ports:
- '2181:2181'
kafka:
image: 'wurstmeister/kafka'
ports:
- '9092:9092'
environment:
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ADVERTISED_PORT: 9092
google-pubsub:
image: 'google/cloud-sdk:latest'
entrypoint: 'gcloud beta emulators pubsub start --host-port=0.0.0.0:8085'
mongo:
image: mongo:3.7
ports:
- "27017:27017"
thruway:
build: './docker/thruway'
ports:
- '9090:9090'
localstack:
image: 'localstack/localstack:3.6.0'
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
- "127.0.0.1:4510-4559:4510-4559" # external services port range
environment:
HOSTNAME_EXTERNAL: 'localstack'
SERVICES: 's3,sqs,sns'
influxdb:
image: 'influxdb:latest'
chronograf:
image: 'chronograf:latest'
entrypoint: 'chronograf --influxdb-url=http://influxdb:8086'
ports:
- '8888:8888'
grafana:
image: 'grafana/grafana:latest'
ports:
- '3000:3000'