docker-compose.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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/postgres.conf:/etc/postgresql/postgresql.conf
  19. orion_processor:
  20. container_name: orion_processor
  21. hostname: orion_processor
  22. image: node:14
  23. restart: unless-stopped
  24. env_file:
  25. - .env
  26. - docker.env
  27. ports:
  28. - '127.0.0.1:${PROCESSOR_PROMETHEUS_PORT}:${PROCESSOR_PROMETHEUS_PORT}'
  29. - '[::1]:${PROCESSOR_PROMETHEUS_PORT}:${PROCESSOR_PROMETHEUS_PORT}'
  30. depends_on:
  31. - orion_db
  32. volumes:
  33. - type: bind
  34. source: .
  35. target: /orion
  36. working_dir: /orion
  37. command: ['make', 'process']
  38. orion_graphql-server:
  39. container_name: orion_graphql-server
  40. hostname: orion_graphql-server
  41. image: node:14
  42. restart: unless-stopped
  43. env_file:
  44. - .env
  45. - docker.env
  46. depends_on:
  47. - orion_db
  48. volumes:
  49. - type: bind
  50. source: .
  51. target: /orion
  52. working_dir: /orion
  53. command: ['make', 'serve']
  54. ports:
  55. - '4350:4350'
  56. volumes:
  57. orion_db_data:
  58. networks:
  59. default:
  60. external:
  61. name: joystream_default