-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
141 lines (140 loc) · 4.15 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
version: "3.8"
services:
app:
image: simplycodedsoftware/php:8.3.13
volumes:
- "$PWD:/data/app"
working_dir: "/data/app"
command: sleep 99999
container_name: "ecotone_development"
user: "${USER_PID:-1000}:${USER_PID:-1000}"
extra_hosts:
- "host.docker.internal:host-gateway"
# 172.17.0.1
environment:
COMPOSER_HOME: /data/app
COMPOSE_HTTP_TIMEOUT: 9999
COMPOSER_ROOT_VERSION: 'dev-main'
RABBIT_HOST: "amqp://rabbitmq:5672"
DATABASE_DSN: pgsql://ecotone:secret@database:5432/ecotone
SECONDARY_DATABASE_DSN: mysql://ecotone:secret@database-mysql:3306/ecotone
APP_DB_HOST: database-mysql
APP_DB_PORT: 3306
APP_DB_DRIVER: pdo_mysql
DATABASE_MYSQL: mysql://ecotone:secret@database-mysql:3306/ecotone
SQS_DSN: sqs:?key=key&secret=secret®ion=us-east-1&endpoint=http://localstack:4566&version=latest
REDIS_DSN: redis://redis:6379
KAFKA_DSN: kafka:9092
APP_MERGE_PLUGIN: "yes"
env_file:
- ".env"
app8_1:
image: simplycodedsoftware/php:8.1.29
volumes:
- "$PWD:/data/app"
working_dir: "/data/app"
command: sleep 99999
container_name: "ecotone_development_8_1"
user: "${USER_PID:-1000}:${USER_PID:-1000}"
extra_hosts:
- "host.docker.internal:host-gateway"
# 172.17.0.1
environment:
COMPOSER_HOME: /data/app
COMPOSE_HTTP_TIMEOUT: 9999
COMPOSER_ROOT_VERSION: 'dev-main'
RABBIT_HOST: "amqp://rabbitmq:5672"
DATABASE_DSN: pgsql://ecotone:secret@database:5432/ecotone
SECONDARY_DATABASE_DSN: mysql://ecotone:secret@database-mysql:3306/ecotone
APP_DB_HOST: database-mysql
APP_DB_PORT: 3306
APP_DB_DRIVER: pdo_mysql
DATABASE_MYSQL: mysql://ecotone:secret@database-mysql:3306/ecotone
SQS_DSN: sqs:?key=key&secret=secret®ion=us-east-1&endpoint=http://localstack:4566&version=latest
REDIS_DSN: redis://redis:6379
KAFKA_DSN: kafka:9092
APP_MERGE_PLUGIN: "yes"
env_file:
- ".env"
database:
image: simplycodedsoftware/postgres:16.1
environment:
POSTGRES_USER: "ecotone"
POSTGRES_PASSWORD: "secret"
ports:
- "5432:5432"
database-mysql:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: "secret"
MYSQL_USER: "ecotone"
MYSQL_PASSWORD: "secret"
MYSQL_DATABASE: "ecotone"
ports:
- "3306:3306"
rabbitmq:
image: rabbitmq:3.11-management-alpine
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
ports:
- "15672:15672"
- "5672:5672"
localstack:
image: localstack/localstack:2.2.0
environment:
LOCALSTACK_HOST: 'localstack'
SERVICES: 'sqs,sns'
ports:
- "4566:4566" # LocalStack Gateway
- "4510-4559:4510-4559" # external services port range
redis:
image: redis:7-alpine
ports:
- '6379:6379'
collector:
image: otel/opentelemetry-collector-contrib:0.73.0
networks:
- default
command: ["--config=/etc/otel-collector-config.yml"]
volumes:
- ./.docker/collector/otel-collector-config.yaml:/etc/otel-collector-config.yml
ports:
- "9411" # Zipkin receiver
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP/HTTP receiver
zipkin:
image: openzipkin/zipkin-slim
networks:
- default
ports:
- 9411:9411
jaeger:
image: jaegertracing/all-in-one:latest
environment:
COLLECTOR_OTLP_ENABLED: "true"
networks:
- default
ports:
- 16686:16686
kafka:
image: 'bitnami/kafka:latest'
ports:
- '9092:9092'
environment:
- KAFKA_CFG_NODE_ID=0
- KAFKA_CFG_PROCESS_ROLES=controller,broker
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@kafka:9093
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
networks:
- default
kafdrop:
image: 'obsidiandynamics/kafdrop:latest'
ports:
- '9999:9000'
environment:
- KAFKA_BROKERCONNECT=kafka:9092
networks:
- default