43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
services:
|
|
postgres:
|
|
image: "postgres:13.1-alpine"
|
|
restart: unless-stopped
|
|
container_name: postgres
|
|
environment:
|
|
- POSTGRES_USER=root
|
|
- POSTGRES_PASSWORD=root
|
|
- POSTGRES_DB=test_database
|
|
volumes:
|
|
- ./volumes/postgres:/data/postgres
|
|
ports:
|
|
- "5051:5432"
|
|
|
|
pgadmin:
|
|
container_name: pgadmin
|
|
image: dpage/pgadmin4
|
|
restart: unless-stopped
|
|
environment:
|
|
PGADMIN_DEFAULT_EMAIL: admin@123.com
|
|
PGADMIN_DEFAULT_PASSWORD: root
|
|
ports:
|
|
- "5050:80"
|
|
volumes:
|
|
- ./volumes/pgadmin:/root/.pgadmin
|
|
depends_on:
|
|
- postgres
|
|
|
|
# https://postgrest.org/en/stable/tutorials/tut0.html
|
|
postgrest:
|
|
image: postgrest/postgrest:v9.0.0
|
|
restart: unless-stopped
|
|
ports:
|
|
- 3003:3000
|
|
environment:
|
|
PGRST_DB_URI: postgres://root:root@postgres:5432/test_database
|
|
PGRST_DB_SCHEMA: api
|
|
PGRST_DB_ANON_ROLE: web_anon
|
|
PGRST_JWT_SECRET: PASSWORDpasswordPASSWORDpassword
|
|
PGRST_LOG_LEVEL: info
|
|
depends_on:
|
|
- postgres
|