docker-compose.yml 590 B

123456789101112131415161718192021222324252627282930
  1. version: "3.8"
  2. services:
  3. postgres:
  4. image: postgres
  5. container_name: postgres
  6. restart: always
  7. ports:
  8. - "5432:5432"
  9. environment:
  10. POSTGRES_USER: postgres
  11. POSTGRES_PASSWORD: mypgdbpass
  12. volumes:
  13. - postgres_data:/var/lib/postgresql/data
  14. yosai_server:
  15. container_name: yosai_server
  16. image: yosai-server:multi
  17. restart: always
  18. ports:
  19. - "8080:8080"
  20. environment:
  21. DB_PASS: mypgdbpass
  22. DB_USER: postgres
  23. DB_HOST: "192.168.50.35:5432"
  24. depends_on:
  25. - postgres
  26. volumes:
  27. postgres_data:
  28. pgadmin_data: