-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
44 lines (42 loc) · 1015 Bytes
/
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
version: '3.3'
services:
postgres:
image: postgres:12.8-alpine
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
POSTGRES_DB: postgres
PGDATA: /var/lib/postgresql/data/pgdata
restart: always
ports:
- 5432:5432
volumes:
- /var/lib/postgresql/data/pgdata
rds-proxy-server:
build:
context: .
dockerfile: build/Dockerfile
command: "server --configfile /configs/server_config.yaml"
depends_on:
- postgres
ports:
- "8000:8000"
volumes:
- ./configs:/configs
- $HOME/.aws/:/.aws/
environment:
LOG_LEVEL: "debug"
rds-proxy-client:
build:
context: .
dockerfile: build/Dockerfile
command: "client --target postgres --password password --configfile /configs/client_config.yaml"
depends_on:
- rds-proxy-server
ports:
- "8001:8001"
volumes:
- ./configs:/configs
- $HOME/.aws/:/.aws/
environment:
LOG_LEVEL: "debug"