-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
119 lines (110 loc) · 3.19 KB
/
docker-compose.yaml
File metadata and controls
119 lines (110 loc) · 3.19 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
name: deck
x-logging: &logging
driver: json-file
options:
max-size: "5m"
max-file: "2"
services:
postgres:
logging: *logging
build:
context: .
dockerfile: Dockerfile.postgres
environment:
POSTGRES_USER: deck
POSTGRES_PASSWORD: deck
POSTGRES_DB: deck
ports:
- "${DB_PORT:-5011}:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U deck -d deck" ]
interval: 5s
timeout: 5s
retries: 5
minio:
logging: *logging
image: minio/minio:RELEASE.2025-09-07T16-13-09Z
profiles:
- optional
command:
- server
- /data
- --address
- :${MINIO_API_INTERNAL_PORT:-9011}
- --console-address
- :${MINIO_CONSOLE_INTERNAL_PORT:-9111}
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-deck-dev}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-deck-dev-password}
MINIO_API_INTERNAL_PORT: ${MINIO_API_INTERNAL_PORT:-9011}
MINIO_CONSOLE_INTERNAL_PORT: ${MINIO_CONSOLE_INTERNAL_PORT:-9111}
ports:
- "127.0.0.1:${MINIO_API_PORT:-9011}:${MINIO_API_INTERNAL_PORT:-9011}"
- "127.0.0.1:${MINIO_CONSOLE_PORT:-9111}:${MINIO_CONSOLE_INTERNAL_PORT:-9111}"
volumes:
- minio-data:/data
vault:
logging: *logging
image: hashicorp/vault:1.21
profiles:
- optional
entrypoint:
- /bin/sh
- /vault/config/entrypoint.sh
cap_add:
- IPC_LOCK
environment:
VAULT_INTERNAL_PORT: ${VAULT_INTERNAL_PORT:-8211}
ports:
- "127.0.0.1:${VAULT_PORT:-8211}:${VAULT_INTERNAL_PORT:-8211}"
volumes:
- ./deploy/dev/vault/entrypoint.sh:/vault/config/entrypoint.sh:ro
- vault-data:/vault/file
loki:
logging: *logging
image: grafana/loki:3.6.4
volumes:
- ./deploy/monitoring/base/loki.yaml:/etc/loki/local-config.yaml
command: -config.file=/etc/loki/local-config.yaml
promtail:
logging: *logging
image: grafana/promtail:3.6.4
volumes:
- ./backend/dist/app/logs:/var/log/app
- ./backend/dist/meetpie/logs:/var/log/meetpie
- ./backend/dist/deskpie/logs:/var/log/deskpie
- ./deploy/monitoring/compose/promtail.yaml:/etc/promtail/config.yaml
command: -config.file=/etc/promtail/config.yaml
depends_on:
- loki
prometheus:
logging: *logging
image: prom/prometheus:v3.8.0
command: --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.retention.time=3d
volumes:
- ./deploy/monitoring/base/prometheus.yaml:/etc/prometheus/prometheus.yml
extra_hosts:
- "host.docker.internal:host-gateway"
grafana:
logging: *logging
image: grafana/grafana:12.3.1
ports:
- "127.0.0.1:3011:3000"
environment:
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_ANONYMOUS_ORG_ROLE: Admin
GF_AUTH_DISABLE_LOGIN_FORM: "true"
volumes:
- ./deploy/monitoring/base/grafana/provisioning:/etc/grafana/provisioning
depends_on:
- loki
- prometheus
volumes:
postgres-data:
name: deck-postgres-${DECK_BRANCH_SLUG:-main}
minio-data:
name: deck-minio-${DECK_BRANCH_SLUG:-main}
vault-data:
name: deck-vault-${DECK_BRANCH_SLUG:-main}