-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
118 lines (118 loc) · 2.93 KB
/
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
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
services:
clickhouse:
image: clickhouse/clickhouse-server:23.7
restart: on-failure
environment:
CLICKHOUSE_DB: uptrace
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "localhost:8123/ping"]
interval: 1s
timeout: 1s
retries: 30
volumes:
- ch_data2:/var/lib/clickhouse
ports:
- "8123:8123"
- "9000:9000"
app-db:
image: postgres:alpine
environment:
POSTGRES_DB: album-store
POSTGRES_PASSWORD: albumstore
POSTGRES_USER: albumstoreuser
volumes:
- ./data:/var/lib/postgresql/data
- ./logs:/var/log/postgresql
- ./postgres/postgresql.conf:/etc/postgresql/postgresql.conf
- ./postgres/pg_hba.conf:/etc/postgresql/pg_hba.conf
ports:
- 5432:5432
restart: on-failure:3
uptrace-db:
image: postgres:alpine
restart: on-failure
environment:
POSTGRES_DB: uptrace
POSTGRES_PASSWORD: uptrace
POSTGRES_USER: uptrace
PGUSER: uptrace
PGDATA: /var/lib/postgresql/data/pgdata
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-U", "uptrace", "-d", "uptrace"]
interval: 1s
timeout: 1s
retries: 30
volumes:
- "pg_data2:/var/lib/postgresql/data/pgdata"
- ./postgres/postgresql.conf:/etc/postgresql/postgresql.conf
- ./postgres/pg_hba.conf:/etc/postgresql/pg_hba.conf
ports:
- "5435:5432"
pgweb:
image: sosedoff/pgweb
depends_on:
- app-db
environment:
PGWEB_DATABASE_URL: postgres://albumstoreuser:albumstore@postgres:5432/album-store?sslmode=disable
ports:
- 8085:8081
restart: on-failure:3
redis:
image: redis:latest
command: redis-server
volumes:
- redis:/var/lib/redis
- redis-config:/usr/local/etc/redis/redis.conf
ports:
- 6379:6379
redis-commander:
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOSTS=local:redis:6379
- HTTP_USER=root
- HTTP_PASSWORD=qwerty
ports:
- 8081:8081
depends_on:
- redis
uptrace:
image: "uptrace/uptrace:1.6.2"
#image: 'uptrace/uptrace-dev:latest'
restart: on-failure
volumes:
- ./uptrace.yml:/etc/uptrace/uptrace.yml
environment:
- DEBUG=2
ports:
- "14317:14317"
- "14318:14318"
depends_on:
clickhouse:
condition: service_healthy
uptrace-db:
condition: service_healthy
otelcol:
image: otel/opentelemetry-collector-contrib:0.91.0
restart: on-failure
volumes:
- ./config/otel-collector.yaml:/etc/otelcol-contrib/config.yaml
ports:
- "4317:4317"
- "4318:4318"
vector:
image: timberio/vector:0.28.X-alpine
volumes:
- ./config/vector.toml:/etc/vector/vector.toml:ro
mailhog:
image: mailhog/mailhog:v1.0.1
restart: on-failure
ports:
- "8025:8025"
volumes:
ch_data2:
redis:
redis-config:
pg_data2:
# networks:
# app-network:
# driver: bridge