-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
40 lines (37 loc) · 792 Bytes
/
compose.yaml
File metadata and controls
40 lines (37 loc) · 792 Bytes
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
services:
bootcamp.api:
image: bootcamp.api
build:
context: .
dockerfile: Bootcamp.Api/Dockerfile
env_file:
- Bootcamp.Api/.env
depends_on:
postgres:
condition: service_healthy
ports:
- "8080:8080"
postgres:
image: postgres:latest
env_file:
- Bootcamp.Api/.env
ports:
- "6666:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U myuser -d Bootcamp" ]
interval: 1s
timeout: 10s
retries: 5
grafana:
image: grafana/grafana:latest
ports:
- "7777:3000"
env_file:
- Bootcamp.Api/.env
volumes:
- grafana_data:/var/lib/grafana
volumes:
postgres_data:
grafana_data: