-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
65 lines (61 loc) · 1.51 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
version: '3'
services:
datadog:
container_name: datadog_agent
image: datadog/agent:latest
environment:
- DD_HOSTNAME=datadog
- DD_API_KEY=${DD_API_KEY}
- DD_APM_ENABLED=true
- DD_PROCESS_AGENT_ENABLED=true
volumes:
- /proc/:/host/proc/:ro
- /sys/fs/cgroup/:/host/sys/fs/cgroup:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /etc/passwd:/etc/passwd:ro
depends_on:
- nginx
- api
api:
container_name: thinker-api
build: ./app/.
environment:
- FLASK_APP=api.py
command: flask run --host=0.0.0.0
volumes:
- ./app:/usr/src/app/
depends_on:
- thinker
thinker:
container_name: thinker-microservice
build: ./app/.
environment:
- FLASK_APP=api.py
command: python thinker.py
volumes:
- ./app:/usr/src/app/
depends_on:
- redis
ports:
- "5001:8000"
redis:
image: redis:latest
container_name: docker-redis
ports:
- "6379:6379"
command: redis-server /usr/local/etc/redis/redis.conf
volumes:
- ./conf.d/redis/redis.conf:/usr/local/etc/redis/redis.conf
nginx:
image: "nginx:latest"
container_name: docker-nginx
ports:
- "8080:80"
volumes:
- ./conf.d/nginx/:/etc/nginx/conf.d
depends_on:
- api
labels:
com.datadoghq.ad.check_names: '["nginx"]'
com.datadoghq.ad.init_configs: '[{}]'
com.datadoghq.ad.instances: '[{"nginx_status_url": "http://%%host%%:%%port%%/nginx_status"}]'