This repository has been archived by the owner on Jul 28, 2024. It is now read-only.
forked from tony-sol/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
165 lines (152 loc) · 3.72 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
155
156
157
158
159
160
161
162
163
164
165
version: '3.8'
services:
php:
build:
context: ./images/php
tty: true
env_file: .env
ports:
- ${PHP_PORT}:8080
volumes:
- ${DOCKER_CACHE_PATH}/php:/var/log/php
- ${DOCKER_PROJECT_PATH}:/app
networks:
- backend
nginx:
profiles:
- nginx
depends_on:
- php
build:
context: ./images/nginx
args:
- NGINX_FASTCGI_PASS=php:9000
env_file: .env
ports:
- ${NGINX_PORT}:80
- ${NGINX_PORT_SECURED}:443
volumes:
- ${DOCKER_CACHE_PATH}/nginx:/var/log/nginx
- ${DOCKER_PROJECT_PATH}/public:/app/public
networks:
- backend
- frontend
redis:
profiles:
- redis
image: redis:latest
command: redis-server
env_file: .env
ports:
- ${REDIS_PORT}:6379
volumes:
- ${DOCKER_CACHE_PATH}/redis:/data
networks:
- backend
postgres:
profiles:
- postgres
image: postgres:latest
command: postgres
env_file: .env
ports:
- ${POSTGRES_PORT}:5432
volumes:
- ${DOCKER_CACHE_PATH}/postgres:/var/lib/postgresql/data
networks:
- backend
tarantool:
profiles:
- tarantool
image: tarantool/tarantool:latest
env_file: .env
ports:
- ${TARANTOOL_PORT}:8123
volumes:
- ${DOCKER_CACHE_PATH}/tarantool:/var/lib/tarantool
networks:
- backend
clickhouse:
profiles:
- clickhouse
image: clickhouse/clickhouse-server:latest
env_file: .env
ports:
- ${CLICKHOUSE_PORT}:8123
volumes:
- ${DOCKER_CACHE_PATH}/clickhouse:/var/lib/clickhouse
networks:
- backend
consul:
profiles:
- consul
image: consul:latest
env_file: .env
ports:
- ${CONSUL_PORT}:8500
volumes:
- ${DOCKER_CACHE_PATH}/consul:/consul/data
networks:
- backend
vault:
profiles:
- vault
image: vault:latest
env_file: .env
ports:
- ${VAULT_PORT}:8200
volumes:
- ${DOCKER_CACHE_PATH}/vault:/vault/data
networks:
- backend
kafka:
profiles:
- kafka
image: bitnami/kafka:latest
env_file: .env
ports:
- ${KAFKA_PORT}:9092
volumes:
- ${DOCKER_CACHE_PATH}/kafka:/bitnami/kafka
networks:
- backend
kowl:
profiles:
- kafka
depends_on:
- kafka
image: rsmnarts/kowl:latest
entrypoint: ./kowl
env_file: .env
ports:
- ${KOWL_PORT}:8080
networks:
- backend
prometheus:
profiles:
- prometheus
image: prom/prometheus:latest
env_file: .env
ports:
- ${PROMETHEUS_PORT}:9090
volumes:
- ${DOCKER_CACHE_PATH}/prometheus:/prometheus
networks:
- backend
grafana:
profiles:
- prometheus
image: grafana/grafana:latest
env_file: .env
ports:
- ${GRAFANA_PORT}:3000
volumes:
- ${DOCKER_CACHE_PATH}/grafana/data:/var/lib/grafana
- ${DOCKER_CACHE_PATH}/grafana/logs:/var/log/grafana
networks:
- backend
networks:
frontend:
driver: bridge
backend:
driver: bridge