-
Notifications
You must be signed in to change notification settings - Fork 14
/
compose-postgres.yml
35 lines (35 loc) · 1.01 KB
/
compose-postgres.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
version: "3.5"
services:
postgresql:
container_name: temporal-postgresql
command: postgres -c 'max_connections=200'
environment:
POSTGRES_PASSWORD: temporal
POSTGRES_USER: temporal
image: postgres:13
ports:
- 5432:5432
postgres-exporter:
container_name: postgres-exporter
image: prometheuscommunity/postgres-exporter:${POSTGRES_EXPORTER_IMG}
environment:
- DATA_SOURCE_URI=postgresql:5432/postgres?sslmode=disable
- DATA_SOURCE_USER=temporal
- DATA_SOURCE_PASS=temporal
- PG_EXPORTER_INCLUDE_DATABASES=temporal,temporal_visibility
ports:
- "9187:9187"
pgadmin:
container_name: temporal-pgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-pgadmin4@pgadmin.org}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
PGADMIN_CONFIG_SERVER_MODE: 'False'
ports:
- "5050:80"
restart: unless-stopped
networks:
default:
external: true
name: temporal-network