-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·157 lines (153 loc) · 4.48 KB
/
docker-compose.yml
File metadata and controls
executable file
·157 lines (153 loc) · 4.48 KB
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
version: '3'
services:
##
# Battle Microservice
##
microservice_battle_php:
container_name: microservice_battle_php
build:
context: .
dockerfile: Dockerfile
volumes:
- ./microservices/battle/app:/var/www/app:delegated
expose:
- 9003
- 9000
microservice_battle_nginx:
container_name: microservice_battle_nginx
build:
context: .
dockerfile: ./microservices/battle/nginx/Dockerfile
volumes:
- ./microservices/battle/app:/var/www/app:delegated
depends_on:
- microservice_battle_php
ports:
- 8443:443
- 8081:80
##
# Location Microservice
##
microservice_location_php:
container_name: microservice_location_php
build:
context: .
dockerfile: Dockerfile
volumes:
- ./microservices/location/app:/var/www/app:delegated
expose:
- 9003
- 9000
microservice_location_nginx:
container_name: microservice_location_nginx
build:
context: .
dockerfile: ./microservices/location/nginx/Dockerfile
volumes:
- ./microservices/location/app:/var/www/app:delegated
depends_on:
- microservice_location_php
ports:
- 8082:80
microservice_location_redis:
container_name: microservice_location_redis
build:
context: .
dockerfile: ./microservices/location/redis/Dockerfile
expose:
- 6379
ports:
- 6380:6379
##
# Secret Microservice
##
microservice_secret_php:
container_name: microservice_secret_php
build:
context: .
dockerfile: Dockerfile
volumes:
- ./microservices/secret/app:/var/www/app:delegated
expose:
- 9000
microservice_secret_nginx:
container_name: microservice_secret_nginx
build:
context: .
dockerfile: ./microservices/secret/nginx/Dockerfile
volumes:
- ./microservices/secret/app:/var/www/app:delegated
depends_on:
- microservice_secret_php
ports:
- 8083:80
microservice_secret_database:
container_name: microservice_secret_database
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=mysecret
- MYSQL_DATABASE=finding_secrets
- MYSQL_USER=secret
- MYSQL_PASSWORD=mysecret
ports:
- 6666:3306
command: ["--default-authentication-plugin=mysql_native_password"]
##
# User Microservice
##
microservice_user_php:
container_name: microservice_user_php
build:
context: .
dockerfile: Dockerfile
volumes:
- ./microservices/user/app:/var/www/app:delegated
expose:
- 9003
- 9000
microservice_user_nginx:
container_name: microservice_user_nginx
build:
context: .
dockerfile: ./microservices/user/nginx/Dockerfile
volumes:
- ./microservices/user/app:/var/www/app:delegated
depends_on:
- microservice_user_php
ports:
- 8084:80
microservice_user_redis:
container_name: microservice_user_redis
build:
context: .
dockerfile: ./microservices/user/redis/Dockerfile
expose:
- 6379
ports:
- 6379:6379
microservice_user_database:
container_name: microservice_user_database
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=mysecret
- MYSQL_DATABASE=finding_users
- MYSQL_USER=secret
- MYSQL_PASSWORD=mysecret
ports:
- 6667:3306
command: ["--default-authentication-plugin=mysql_native_password"]
##
# Telemetry: prometheus
##
telemetry:
container_name: telemetry
image: prom/prometheus:v2.36.1
volumes:
- ./telemetry/etc:/etc/prometheus/
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
ports:
- "9999:9090"