forked from DataDog/dd-trace-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
154 lines (140 loc) · 5.47 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
152
153
154
version: '3.6'
x-aliases:
- &base_php_service
ulimits:
core: 99999999999
working_dir: '/home/circleci/app'
stdin_open: true
tty: true
volumes:
- .:/home/circleci/app
- .composer:/home/circleci/.composer
- .scenarios.lock:/home/circleci/app/.scenarios.lock
- agent-socket:/var/run/datadog
tmpfs: [ '/home/circleci/app/tmp:uid=3434,gid=3434,exec', '/home/circleci/app/tests/vendor:uid=3434,gid=3434,exec' ]
depends_on:
- agent
- ddagent_integration
- request-replayer
#- elasticsearch2_integration
- elasticsearch7_integration
- httpbin_integration
- redis_integration
- mongodb_integration
- mysql_integration
- memcached_integration
environment:
- REDIS_HOSTNAME=redis_integration
- DDAGENT_HOSTNAME=ddagent_integration
- HTTPBIN_HOSTNAME=httpbin_integration
- COMPOSER_MEMORY_LIMIT=-1
- PHP_IDE_CONFIG=serverName=docker
- DD_TRACE_DOCKER_DEBUG
cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined
# Privileged is requires to run some pcntl tests locally.
# privileged: true
services:
# --- Alpine (Legacy) ---
'7.0-alpine': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-7.0-debug' }
'7.1-alpine': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-7.1-debug' }
'7.2-alpine': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-7.2-debug' }
'7.3-alpine': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-7.3-debug' }
'7.4-alpine': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-7.4-debug-alpine-3.11' }
# --- Alpine ---
'8.0-alpine': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-8.0_alpine' }
# --- Buster ---
'7.0-buster': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-7.0_buster' }
'7.1-buster': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-7.1_buster' }
'7.2-buster': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-7.2_buster' }
'7.3-buster': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-7.3_buster' }
'7.4-buster': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-7.4_buster' }
'7.4-buster-shared-ext': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-7.4-shared-ext' }
'8.0-buster': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-8.0_buster' }
'8.0-buster-shared-ext': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-8.0-shared-ext' }
'8.1-buster': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-8.1_buster' }
'8.2-buster': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-8.2_buster' }
'php-master-buster': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-master_buster' }
# --- CentOS 6 ---
'7.0-centos7': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-7.0_centos-7' }
'7.1-centos7': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-7.1_centos-7' }
'7.2-centos7': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-7.2_centos-7' }
'7.3-centos7': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-7.3_centos-7' }
'7.4-centos7': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-7.4_centos-7' }
'8.0-centos7': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-8.0_centos-7' }
'8.1-centos7': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-8.1_centos-7' }
'8.2-centos7': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-8.2_centos-7' }
mysql_integration:
image: mysql/mysql-server:8.0
command: --default-authentication-plugin=mysql_native_password
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=test
- MYSQL_PASSWORD=test
- MYSQL_USER=test
- MYSQL_DATABASE=test
elasticsearch2_integration:
image: "elasticsearch:2"
elasticsearch7_integration:
image: "elasticsearch:7.17.0"
environment:
- discovery.type=single-node
cap_add:
- IPC_LOCK
ports:
- "9200:9200"
- "9300:9300"
mongodb_integration:
image: "circleci/mongo:4.0"
ports:
- "27017:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=test
- MONGO_INITDB_ROOT_PASSWORD=test
redis_integration:
image: "datadog/dd-trace-ci:php-redis-5.0"
memcached_integration:
image: "memcached:1.5-alpine"
httpbin_integration:
image: kong/httpbin
ports:
- "8765:80"
ddagent_integration:
image: datadog/agent:latest
healthcheck:
test: ["CMD", "curl", "-f", "-X", "HEAD", "http://localhost:8126"]
interval: 10s
timeout: 2s
retries: 2
environment:
- DD_APM_ENABLED=true
- DD_BIND_HOST=0.0.0.0
- DD_API_KEY=invalid_key_but_its_ok
request-replayer:
image: datadog/dd-trace-ci:php-request-replayer-2.0
ports:
- "8766:80"
agent:
image: datadog/agent:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /proc/:/host/proc/:ro
- /sys/fs/cgroup/:/host/sys/fs/cgroup:ro
- agent-socket:/var/run/datadog
environment:
- DD_API_KEY=${DATADOG_API_KEY}
- DD_APM_ENABLED=true
- DD_DOGSTATSD_NON_LOCAL_TRAFFIC=1
- DD_APM_RECEIVER_SOCKET=/var/run/datadog/apm.socket
ports:
- "8126:8126"
packager:
image: datadog/docker-library:ddtrace_php_fpm_packaging
working_dir: /app
volumes:
- .:/app
volumes:
agent-socket: