-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
89 lines (77 loc) · 2.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
x-otel-common:
&otel-common
OTEL_PHP_AUTOLOAD_ENABLED: ${OTEL_PHP_AUTOLOAD_ENABLED:-true}
OTEL_SERVICE_NAME: drupal
OTEL_TRACES_EXPORTER: otlp
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: http://jaeger:4318/v1/traces
OTEL_PHP_TRACES_PROCESSOR: batch
services:
##################
# Network
# Used for establishing a common network which other
# containers are running in.
##################
network:
image: public.ecr.aws/eks-distro/kubernetes/pause:v1.24.17-eks-1-24-latest
ports:
- "${WEB_PORT:-8080}:8080"
- "${MYSQL_PORT:-3306}:3306"
extra_hosts:
- "host.docker.internal:host-gateway"
##################
# Web
##################
nginx:
build:
context: ./docker/compose/nginx
network_mode: service:network
volumes:
- ./:/data
php-fpm:
build:
context: ./docker/compose/php-fpm
network_mode: service:network
volumes:
- ./:/data
- ./docker/compose/volume/etc/skpr/data:/etc/skpr/data
environment:
PHP_IDE_CONFIG: serverName=localhost
<<: *otel-common
##################
# CLI
##################
php-cli:
build:
context: ./docker/compose/php-cli
command: /bin/bash -c "sleep infinity"
network_mode: service:network
volumes:
- ./:/data
- ./docker/compose/volume/etc/skpr/data:/etc/skpr/data
environment:
DRUSH_OPTIONS_URI: http://127.0.0.1:8080
PATH: ${PATH}:/data/drupal/vendor/bin
<<: *otel-common
##################
# Databases
##################
mysql-default:
image: skpr/mtk-mysql-empty:latest
network_mode: service:network
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
interval: 1s
retries: 60
##################
# Services
##################
jaeger:
image: jaegertracing/all-in-one:1.52.0
restart: always
environment:
- COLLECTOR_OTLP_ENABLED=true
ports:
- "16686:16686"
- "4317:4317"
- "4318:4318"