docker-compose.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. version: '3'
  2. services:
  3. orion_db:
  4. container_name: orion_db
  5. hostname: orion_db
  6. image: postgres:14
  7. restart: unless-stopped
  8. environment:
  9. POSTGRES_DB: squid
  10. POSTGRES_PASSWORD: squid
  11. ports:
  12. - '127.0.0.1:${DB_PORT}:${DB_PORT}'
  13. - '[::1]:${DB_PORT}:${DB_PORT}'
  14. command: ['postgres', '-c', 'config_file=/etc/postgresql/postgresql.conf', '-p', '${DB_PORT}']
  15. shm_size: 1g
  16. volumes:
  17. - orion_db_data:/var/lib/postgresql/data
  18. - ./db/persisted:/persisted_data
  19. - ./db/postgres.conf:/etc/postgresql/postgresql.conf
  20. orion_processor:
  21. container_name: orion_processor
  22. hostname: orion_processor
  23. image: node:14
  24. restart: unless-stopped
  25. env_file:
  26. - .env
  27. - docker.env
  28. ports:
  29. - '127.0.0.1:${PROCESSOR_PROMETHEUS_PORT}:${PROCESSOR_PROMETHEUS_PORT}'
  30. - '[::1]:${PROCESSOR_PROMETHEUS_PORT}:${PROCESSOR_PROMETHEUS_PORT}'
  31. depends_on:
  32. - orion_db
  33. volumes:
  34. - type: bind
  35. source: .
  36. target: /orion
  37. working_dir: /orion
  38. command: ['make', 'process']
  39. orion_graphql-server:
  40. container_name: orion_graphql-server
  41. hostname: orion_graphql-server
  42. image: node:14
  43. restart: unless-stopped
  44. env_file:
  45. - .env
  46. - docker.env
  47. depends_on:
  48. - orion_db
  49. volumes:
  50. - type: bind
  51. source: .
  52. target: /orion
  53. working_dir: /orion
  54. command: ['make', 'serve']
  55. ports:
  56. - '4350:4350'
  57. volumes:
  58. orion_db_data:
  59. networks:
  60. default:
  61. external:
  62. name: joystream_default