-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
148 lines (141 loc) · 4.33 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
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
services:
aspnet-core-logging-db-local-dev:
container_name: aspnet-core-logging-db-for-local-dev
image: satrapu/postgresql:15.1-linux
restart: unless-stopped
healthcheck:
test: >
pg_isready \
--host=localhost \
--port=5432 \
--dbname=$$POSTGRES_DB \
--username=$$POSTGRES_USER
interval: "2s"
timeout: "5s"
retries: 5
start_period: "1s"
volumes:
- aspnet-core-logging-db-for-local-dev_data:/var/lib/postgresql/data
ports:
- "5432:5432/tcp"
networks:
- local_postgresql
environment:
- POSTGRES_USER=${DB_LOCAL_POSTGRES_USER}
- POSTGRES_PASSWORD=${DB_LOCAL_POSTGRES_PASSWORD}
- POSTGRES_DB=aspnet-core-logging-db-local-dev
aspnet-core-logging-db-integration-tests:
container_name: aspnet-core-logging-db-for-integration-tests
image: satrapu/postgresql:15.1-linux
restart: unless-stopped
healthcheck:
test: >
pg_isready \
--host=localhost \
--port=5432 \
--dbname=$$POSTGRES_DB \
--username=$$POSTGRES_USER
interval: "2s"
timeout: "5s"
retries: 5
start_period: "1s"
volumes:
- aspnet-core-logging-db-for-integration-tests_data:/var/lib/postgresql/data
ports:
- "5433:5432/tcp"
networks:
- local_postgresql
environment:
- POSTGRES_USER=${DB_INTEGRATION_TESTS_POSTGRES_USER}
- POSTGRES_PASSWORD=${DB_INTEGRATION_TESTS_POSTGRES_PASSWORD}
- POSTGRES_DB=aspnet-core-logging-db-integration-tests
aspnet-core-logging-db-acceptance-tests:
container_name: aspnet-core-logging-db-for-acceptance-tests
image: satrapu/postgresql:15.1-linux
restart: unless-stopped
healthcheck:
test: >
pg_isready \
--host=localhost \
--port=5432 \
--dbname=$$POSTGRES_DB \
--username=$$POSTGRES_USER
interval: "2s"
timeout: "5s"
retries: 5
start_period: "1s"
volumes:
- aspnet-core-logging-db-for-acceptance-tests_data:/var/lib/postgresql/data
ports:
- "5434:5432/tcp"
networks:
- local_postgresql
environment:
- POSTGRES_USER=${DB_ACCEPTANCE_TESTS_POSTGRES_USER}
- POSTGRES_PASSWORD=${DB_ACCEPTANCE_TESTS_POSTGRES_PASSWORD}
- POSTGRES_DB=aspnet-core-logging-db-acceptance-tests
jaeger:
container_name: jaeger
image: jaegertracing/all-in-one:1.62.0
restart: unless-stopped
ports:
# The ports used by various Jaeger services and their meaning are taken from here: https://github.com/jaegertracing/jaeger/blob/main/crossdock/jaeger-docker-compose.yml
# and here: https://www.jaegertracing.io/docs/next-release/deployment/.
# jaeger-agent port
- "6831:6831/udp"
# jaeger-collector port
# - server health check is available via "/" endpoint (i.e., http://localhost:14269/)
# - server metrics are available via "/metrics" endpoint (i.e., http://localhost:14269/metrics)
- "14269:14269"
# jaeger-query port
# - dashboard is available via "/" endpoint (i.e., http://localhost:16686/)
- "16686:16686"
networks:
- local_jaeger
pgadmin:
container_name: pgadmin-ui
image: dpage/pgadmin4:2024-10-19-2
restart: unless-stopped
volumes:
- pgadmin_data:/var/lib/pgadmin
ports:
- "8080:80/tcp"
networks:
- local_postgresql
environment:
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}
depends_on:
- aspnet-core-logging-db-local-dev
- aspnet-core-logging-db-integration-tests
- aspnet-core-logging-db-acceptance-tests
seq:
container_name: seq
image: datalust/seq:2024.3
restart: unless-stopped
volumes:
- seq_data:/data
ports:
# Ingestion port
- "5341:5341/tcp"
# UI port
- "8888:80/tcp"
networks:
- local_seq
environment:
- ACCEPT_EULA=Y
volumes:
aspnet-core-logging-db-for-local-dev_data:
external: true
aspnet-core-logging-db-for-integration-tests_data:
external: true
aspnet-core-logging-db-for-acceptance-tests_data:
external: true
pgadmin_data:
external: true
seq_data:
external: true
networks:
local_jaeger:
local_postgresql:
local_seq: