-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (51 loc) · 1.11 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
version: "3.7"
services:
server:
build: ./
command: air
image: casino-royale
container_name: server
ports:
- 8080:8080
volumes:
- code-sync:/casino-royale/:nocopy
env_file:
- config/env/development.env
environment:
- PORT=8080
depends_on:
- db
db:
image: postgres:14-alpine
container_name: db
ports:
- 5432:5432
volumes:
- db-data-sync:/var/lib/postgresql/data
env_file:
- config/env/development.env
grafana:
image: grafana/grafana:latest
container_name: grafana
volumes:
- grafana:/var/lib/grafana
- ./config/monitoring/grafana.yml:/etc/grafana/provisioning/datasources/datasource.yaml
ports:
- 3004:3000
user: "472"
depends_on:
- prometheus
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- 9090:9090
command:
- --config.file=/etc/prometheus/prometheus.yml
volumes:
- ./config/monitoring/prometheus.yml:/etc/prometheus/prometheus.yml:ro
volumes:
grafana:
code-sync:
external: true
db-data-sync: {}