I totally sure that in docker postgres is working well because when i make this query
irb(main):001> User.all
i am getting this result:
User Load (4.8ms) SELECT "users".* FROM "users" /* loading for pp */ LIMIT $1 [["LIMIT", 11]]
=> []
irb(main):002>
but i can not see anything in pgadmin
this is docker-compose.yml
version: "3.8"
services:
postgres:
image: postgres:14.5
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- '5432:5432'
volumes:
- pb-postgres:/var/lib/postgresql/data
redis:
image: redis:7.0.5
ports:
- '6379:6379'
volumes:
- pb-redis:/var/lib/redis/data
pb:
build:
context: .
volumes:
- ./pb:/opt/app
links:
- postgres
- redis
ports:
- '8010:8010'
env_file:
- .env
volumes:
pb-postgres:
pb-redis: