-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose-pgcat.yml
51 lines (47 loc) · 1021 Bytes
/
docker-compose-pgcat.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
version: '3.9'
services:
pgcat:
container_name: pgcat
hostname: pgcat
build: ./pgcat
command:
- "pgcat"
- "/etc/pgcat/pgcat.toml"
#environment:
#- RUST_LOG=debug
ports:
- "6432:6432"
- "9930:9930"
depends_on:
- lb
restart: always
postgresql:
container_name: postgresql
hostname: postgresql
build: postgresql/.
entrypoint: ["/usr/bin/tail", "-f", "/dev/null"]
environment:
- PGHOST=pgcat
- PGUSER=root
- PGPASSWORD=root
- PGPORT=6432
- PGDATABASE=example
- SCALE=10
depends_on:
- pgcat
flyway:
container_name: flyway
hostname: flyway
image: flyway/flyway
entrypoint: ["flyway", "migrate"]
volumes:
- ./postgresql/flyway/sql:/flyway/sql
- ./postgresql/flyway/conf:/flyway/conf
healthcheck:
test: ["CMD-SHELL", "flyway", "info"]
interval: 10s
timeout: 10s
retries: 3
start_period: 10s
depends_on:
- pgcat