docker-compose.yml 611 B

123456789101112131415161718192021222324252627282930313233
  1. version: '3.3'
  2. services:
  3. db:
  4. image: postgres
  5. restart: "no"
  6. environment:
  7. POSTGRES_USER: squad-user
  8. POSTGRES_PASSWORD: sosecret
  9. POSTGRES_DB: squad-db
  10. ports:
  11. - "5432:5432"
  12. volumes:
  13. - db_data:/var/lib/postgresql/data
  14. pgadmin:
  15. image: dpage/pgadmin4
  16. restart: "no"
  17. environment:
  18. PGADMIN_DEFAULT_EMAIL: dev@jovian-hersemeule.eu
  19. PGADMIN_DEFAULT_PASSWORD: root
  20. ports:
  21. - "8080:80"
  22. volumes:
  23. - pgadmin_data:/var/lib/pgadmin
  24. depends_on:
  25. - db
  26. links:
  27. - "db:pgsql-server"
  28. volumes:
  29. db_data:
  30. pgadmin_data: