-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathconfig.yaml
More file actions
35 lines (35 loc) · 788 Bytes
/
Copy pathconfig.yaml
File metadata and controls
35 lines (35 loc) · 788 Bytes
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
---
pools:
redis:
image: redis
size: 5
port: 6379
params:
database: "0"
url: redis://{{.Hostname}}:{{.Port}}/{{.Database}}
actions:
healthcheck:
type: redis.ping
reset:
type: redis.truncate
postgres:
image: postgres
size: 5
port: 5432
params:
username: postgres
database: postgres
url: postgres://{{.Username}}:{{.Password}}@{{.Hostname}}:{{.Port}}/{{.Database}}?sslmode=disable
actions:
initialize:
type: postgres.exec
query: |
CREATE TABLE users (
id SERIAL PRIMARY KEY,
name VARCHAR(255) NOT NULL,
UNIQUE(name)
)
healthcheck:
type: postgres.ping
reset:
type: postgres.truncate