diff --git a/development/.env.discourse.sample b/development/.env.discourse.sample new file mode 100644 index 0000000..2d269ec --- /dev/null +++ b/development/.env.discourse.sample @@ -0,0 +1,12 @@ +NODE_ENV=production +PORT=3000 + +NEO4J_HOST=neo4j +NEO4J_PORT=7687 +NEO4J_USERNAME=neo4j +NEO4J_PASSWORD=password + +REDIS_HOST=redis +REDIS_PORT=6379 + +PROXY_URI=http://xxxx:yyyy@eu.dc.smartproxy.com \ No newline at end of file diff --git a/development/docker-compose.yml b/development/docker-compose.yml index b056ced..041239a 100644 --- a/development/docker-compose.yml +++ b/development/docker-compose.yml @@ -344,6 +344,51 @@ services: # HIVEMIND SERVICES - END + # DISCOURSE SERVICES - START + + discourse-redis: + image: redis:7.0.11 + restart: unless-stopped + command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ] + volumes: + - type: bind + source: ./redis/discourse.conf + target: /usr/local/etc/redis/redis.conf + read_only: true + healthcheck: + test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ] + interval: 60s + timeout: 10s + retries: 2 + start_period: 40s + networks: + - discourse + - monitoring + <<: *logging + + discourse: + image: ghcr.io/togethercrew/discourse:main + command: yarn run start:prod + restart: always + ports: + - 43001:3000 + env_file: + - .env.discourse + depends_on: + discourse-redis: + condition: service_healthy + rabbitmq-dev: + condition: service_healthy + neo4j-dev: + condition: service_healthy + networks: + - discourse + - development + - monitoring + <<: *logging + + # DISCOURSE SERVICES - END + volumes: mongodb_data_container: rmq_data_container: @@ -364,3 +409,5 @@ networks: external: true hivemind: driver: bridge + discourse: + driver: bridge \ No newline at end of file diff --git a/development/redis/discourse.sample b/development/redis/discourse.sample new file mode 100644 index 0000000..6356f6e --- /dev/null +++ b/development/redis/discourse.sample @@ -0,0 +1 @@ +requirepass PASSWORD