-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml.old
executable file
·99 lines (93 loc) · 2.46 KB
/
docker-compose.yml.old
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
version: '3'
services:
application:
container_name: myapp
image: myapp
build:
context: ./homework_DSB
dockerfile: Dockerfile
depends_on:
- mysql
- minio
links:
- mysql
- minio
environment:
- DB_URL=jdbc:mysql://mysql:3306/homework_db
- DB_USERNAME=mauro
- DB_PASSWORD=mauro
- ACCESS_KEY=mauro
- SECRET_KEY=maurolabruna
- MINIO_URL=http://minio:9000
#Change Tomcat default port. Passed it as env variable
#because Docker doesn't change it
- PORT=8081
ports:
- "8081:8081"
expose:
- "8081"
volumes:
- ./homework_DSB/storage:/data/
restart: on-failure:2
mysql:
container_name: mysql
image: mysql
environment:
- MYSQL_ROOT_USER=root
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=homework_db
- MYSQL_USER=mauro
- MYSQL_PASSWORD=mauro
ports:
- "3307:3306"
volumes:
- ./storage:/db/storage
minio:
container_name: minio
image: minio/minio
environment:
- MINIO_ACCESS_KEY=mauro
- MINIO_SECRET_KEY=maurolabruna
ports:
- "9000:9000"
expose:
- "9000"
command: minio server ./storage
volumes:
- ./storage:/minio/storage
api_gateway:
<<<<<<< HEAD
container_name: api_gateway
=======
container_name: apigateway
>>>>>>> f411014d665593498e3a74c5cbd2d305ee9043ac
environment:
- URL=http://myapp:8081
- RESPONSE_TIMEOUT=2000
- MAX_FILE_SIZE=10000
- PORT=8080
image: api_gateway
build:
context: ./api_gateway
dockerfile: Dockerfile
ports:
- "8080:8080"
expose:
- "8080"
links:
- application
depends_on:
- application
volumes:
- ./storage:/api_gateway/storage
prometheus:
container_name: prometheus
image: prom/prometheus
volumes:
- ./prometheus/:/etc/prometheus/
ports:
- 9090:9090
command:
- --config.file=/etc/prometheus/prometheus.yml
depends_on:
- api_gateway