mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-07 16:04:02 +00:00
Simplify forum container configuration
Forum environment variables no longer need to be defined in docker-compose. Instead, the default values defined at build time are used.
This commit is contained in:
parent
d0f02b7268
commit
58e7c3976d
@ -29,5 +29,8 @@ RUN bundle install --deployment
|
|||||||
|
|
||||||
ENV RACK_ENV staging
|
ENV RACK_ENV staging
|
||||||
ENV NEW_RELIC_ENABLE false
|
ENV NEW_RELIC_ENABLE false
|
||||||
|
ENV API_KEY forumapikey
|
||||||
|
ENV SEARCH_SERVER "http://elasticsearch:9200"
|
||||||
|
ENV MONGOHQ_URL "mongodb://mongodb/cs_comments_service"
|
||||||
EXPOSE 4567
|
EXPOSE 4567
|
||||||
CMD ./bin/unicorn -c config/unicorn_tcp.rb -I '.'
|
CMD ./bin/unicorn -c config/unicorn_tcp.rb -I '.'
|
||||||
|
@ -67,10 +67,6 @@ services:
|
|||||||
|
|
||||||
forum:
|
forum:
|
||||||
image: regis/openedx-forum:hawthorn
|
image: regis/openedx-forum:hawthorn
|
||||||
environment:
|
|
||||||
API_KEY: "forumapikey"
|
|
||||||
SEARCH_SERVER: "http://elasticsearch:9200"
|
|
||||||
MONGOHQ_URL: "mongodb://mongodb/cs_comments_service"
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
|
Loading…
Reference in New Issue
Block a user