-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
49 lines (46 loc) · 1.17 KB
/
docker-compose.yaml
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
version: "3.8"
services:
app:
build:
context: .
dockerfile: delivery/Dockerfile
container_name: app
environment:
- ADMIN_API_KEY=bc6acdd7-9de0-495f-86ea-20beda48d626
- APPLICATION_SECRET=whatever
- CREATE_DATABASE=true
- DATABASE_HOST=database
- DATABASE_NAME=chore-management
- DATABASE_PASSWORD=root
- DATABASE_PORT=3306
- DATABASE_URL=mysql://root:root@database:3306/chore-management
- DATABASE_USER=root
- REDIS_HOST=redis
- REDIS_PORT=6379
- RUN_MIGRATIONS=true
- TZ=Europe/Madrid
- WAIT_FOR_IT_ADDRESS=database:3306
ports:
- "8080:8080"
healthcheck:
interval: 3s
timeout: 1s
start_period: 5s
retries: 0
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
database:
image: mysql:oracle
container_name: database
environment:
- MYSQL_ROOT_PASSWORD=root
ports:
- "3306:3306"
prometheus:
image: prom/prometheus:v2.36.2
container_name: prometheus
volumes:
- ./utils/:/etc/prometheus/
command:
- --config.file=/etc/prometheus/prometheus.yml
ports:
- 9090:9090