Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discourse #90

Merged
merged 3 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions development/.env.discourse.sample
Original file line number Diff line number Diff line change
@@ -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:[email protected]
47 changes: 47 additions & 0 deletions development/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -364,3 +409,5 @@ networks:
external: true
hivemind:
driver: bridge
discourse:
driver: bridge
1 change: 1 addition & 0 deletions development/redis/discourse.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
requirepass PASSWORD