init commit,
This commit is contained in:
42
03_source/docker/docker-compose.db.yml.bak
Normal file
42
03_source/docker/docker-compose.db.yml.bak
Normal file
@@ -0,0 +1,42 @@
|
||||
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
|
Reference in New Issue
Block a user