-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
46 lines (40 loc) · 1.31 KB
/
docker-compose.yaml
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
version: "3.8"
services:
db:
build:
dockerfile: db.Dockerfile
context: .
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
- ./sqitch:/sqitch
environment:
POSTGRES_DB: "${POSTGRES_DB}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_STORAGE_USER: "${POSTGRES_STORAGE_USER}"
POSTGRES_STORAGE_USER_PASSWORD: "${POSTGRES_STORAGE_USER_PASSWORD}"
SQITCH_CONFIG: "/sqitch/sqitch.conf"
SQITCH_USERNAME: "${POSTGRES_STORAGE_USER}"
SQITCH_PASSWORD: "${POSTGRES_STORAGE_USER_PASSWORD}"
SQITCH_TARGET: "db:pg://${POSTGRES_STORAGE_USER}:${POSTGRES_STORAGE_USER_PASSWORD}@db/${POSTGRES_DB}"
PGRST_JWT_SECRET: "${PGRST_JWT_SECRET}"
api:
image: postgrest/postgrest
environment:
PGRST_DB_URI: "postgres://${POSTGRES_STORAGE_USER}:${POSTGRES_STORAGE_USER_PASSWORD}@db:5432/${POSTGRES_DB}"
PGRST_DB_SCHEMA: api
PGRST_DB_ANON_ROLE: anonymous
PGRST_OPENAPI_SERVER_PROXY_URI: http://localhost:3000
PGRST_JWT_SECRET: "${PGRST_JWT_SECRET}"
depends_on:
- db
ports:
- "3000:3000"
schemaspy:
image: schemaspy/schemaspy
volumes:
- ./schemaspy.properties:/schemaspy.properties
- ./schemaspy-output:/output
volumes:
db-data: