docker-compose.yml 613 B

12345678910111213141516171819202122232425262728
  1. version: '3.8'
  2. services:
  3. db:
  4. image: postgres:latest
  5. restart: unless-stopped
  6. volumes:
  7. - postgres-data:/var/lib/postgresql/data
  8. environment:
  9. POSTGRES_PASSWORD: postgres
  10. POSTGRES_USER: postgres
  11. POSTGRES_DB: postgres
  12. ports:
  13. - "5432:5432"
  14. pgadmin:
  15. image: dpage/pgadmin4:latest
  16. environment:
  17. - PGADMIN_DEFAULT_EMAIL=dev@js.wiki
  18. - PGADMIN_DEFAULT_PASSWORD=123123
  19. - PGADMIN_DISABLE_POSTFIX=True
  20. - PGADMIN_LISTEN_PORT=8000
  21. - PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED=False
  22. ports:
  23. - "8000:8000"
  24. volumes:
  25. postgres-data: