File tree Expand file tree Collapse file tree 3 files changed +95
-0
lines changed Expand file tree Collapse file tree 3 files changed +95
-0
lines changed Original file line number Diff line number Diff line change 1+ version : ' 3.8'
2+
3+ services :
4+ postgres :
5+ container_name : postgres
6+ image : postgres
7+ environment :
8+ POSTGRES_USER : postgres
9+ POSTGRES_PASSWORD : secret
10+ POSTGRES_DB : public
11+ PGDATA : /data/postgres
12+ PGUSER : postgres # Required for health check
13+ healthcheck :
14+ test : [ "CMD-SHELL", "pg_isready" ]
15+ interval : 2s
16+ timeout : 2s
17+ retries : 10
18+ volumes :
19+ - ./initdb.d/init.sql:/docker-entrypoint-initdb.d/init.sql
20+ ports :
21+ - " 5432:5432"
22+ networks :
23+ - postgres
24+
25+ postgres_pace :
26+ container_name : postgres_pace
27+ image : postgres
28+ environment :
29+ POSTGRES_USER : pace
30+ POSTGRES_PASSWORD : pace
31+ PGDATA : /data/postgres
32+ PGUSER : pace # Required for health check
33+ healthcheck :
34+ test : ["CMD-SHELL", "pg_isready"]
35+ interval : 2s
36+ timeout : 2s
37+ retries : 10
38+ ports :
39+ - " 5431:5432"
40+ networks :
41+ - postgres_pace
42+
43+ pace_app :
44+ depends_on :
45+ postgres_pace :
46+ condition : service_healthy
47+ postgres :
48+ condition : service_healthy
49+ container_name : pace
50+ image : ${IMAGE:-ghcr.io/getstrm/pace:latest-alpha}
51+ pull_policy : ${PULL_POLICY:-always}
52+ volumes :
53+ - ./pace/:/app/config/
54+
55+ ports :
56+ - " 8080:8080" # Spring Boot
57+ - " 9090:9090" # Envoy JSON / gRPC Proxy
58+ - " 50051:50051" # gRPC
59+ networks :
60+ - postgres_pace
61+ - postgres
62+
63+ networks :
64+ postgres_pace :
65+ name : postgres_pace
66+ driver : bridge
67+ postgres :
68+ name : postgres
69+ driver : bridge
Original file line number Diff line number Diff line change 1+ create user mark with encrypted password ' mark' ;
2+ create role administrator;
3+ create role marketing;
4+ grant marketing to mark;
5+ grant administrator to postgres;
6+ -- Grant select access to user 'other' on all (including future) tables
7+ -- alter default privileges in schema public grant all on tables to other;
Original file line number Diff line number Diff line change 1+ spring :
2+ datasource :
3+ url : jdbc:postgresql://postgres_pace:5431/pace
4+ hikari :
5+ username : pace
6+ password : pace
7+ schema : public
8+
9+ app :
10+ expose-application-exceptions : true
11+ processing-platforms :
12+ postgres :
13+ - id : " sample-connection"
14+ host-name : " postgres"
15+ port : 5432
16+ user-name : " postgres"
17+ password : " secret"
18+ database : " postgres"
19+
You can’t perform that action at this time.
0 commit comments