-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
142 lines (126 loc) · 2.89 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
version: '3.7'
services:
php-fpm:
build: docker
container_name: 'php'
ports:
- '9000:9000'
volumes:
- ./:/app
working_dir: /app
nginx:
image: nginx
container_name: 'nginx'
working_dir: /app
ports:
- '7777:80'
volumes:
- ./:/app
- ./docker/nginx.conf:/etc/nginx/conf.d/default.conf
postgres:
image: postgres:15
ports:
- 15432:5432
container_name: 'postgresql'
working_dir: /app
restart: always
environment:
POSTGRES_DB: 'twitter'
POSTGRES_USER: 'user'
POSTGRES_PASSWORD: 'password'
volumes:
- dump:/app/dump
- postgresql:/var/lib/postgresql/data
graphite:
image: graphiteapp/graphite-statsd
container_name: 'graphite'
restart: always
ports:
- 8000:80
- 2003:2003
- 2004:2004
- 2023:2023
- 2024:2024
- 8125:8125/udp
- 8126:8126
grafana:
image: grafana/grafana
container_name: 'grafana'
restart: always
ports:
- 3000:3000
memcached:
image: memcached:latest
container_name: 'memcached'
restart: always
ports:
- 11211:11211
redis:
container_name: 'redis'
image: redis:alpine
ports:
- "6379:6379"
rabbitmq:
image: rabbitmq:3.7.5-management
working_dir: /app
hostname: rabbit-mq
container_name: 'rabbit-mq'
ports:
- 15672:15672
- 5672:5672
environment:
RABBITMQ_DEFAULT_USER: user
RABBITMQ_DEFAULT_PASS: password
supervisor:
build: docker/supervisor
container_name: 'supervisor'
volumes:
- ./:/app
- ./docker/supervisor/supervisord.conf:/etc/supervisor/supervisord.conf
working_dir: /app
command: ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.1
container_name: 'elasticsearch'
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200
- 9300:9300
kibana:
image: docker.elastic.co/kibana/kibana:7.9.1
container_name: 'kibana'
depends_on:
- elasticsearch
ports:
- 5601:5601
postgres_test:
image: postgres:11
ports:
- 25432:5432
container_name: 'postgresql_test'
working_dir: /app
restart: always
environment:
POSTGRES_DB: 'twitter_test'
POSTGRES_USER: 'user'
POSTGRES_PASSWORD: 'password'
volumes:
- dump:/app/dump
- postgresql_test:/var/lib/postgresql/data
openapi-generator:
image: openapitools/openapi-generator-cli:latest
volumes:
- ./:/local
command: [ "generate", "-i", "/local/apidoc.yaml", "-g", "php", "-o", "/local/api-client" ]
volumes:
dump:
postgresql:
postgresql_test: