Skip to content
Snippets Groups Projects
Commit d4839952 authored by Gabriel Engel's avatar Gabriel Engel
Browse files

standardising docker deployment links and DB name

parent 30171f20
No related branches found
No related tags found
No related merge requests found
......@@ -27,8 +27,8 @@ USER rocketchat
VOLUME /app/uploads
WORKDIR /app/bundle
# needs a mongoinstance - defaults to container linking with alias 'db'
ENV MONGO_URL=mongodb://db:27017/meteor \
# needs a mongoinstance - defaults to container linking with alias 'mongo'
ENV MONGO_URL=mongodb://mongo:27017/rocketchat \
PORT=3000 \
ROOT_URL=http://localhost:3000 \
Accounts_AvatarStorePath=/app/uploads
......
db:
mongo:
image: mongo
# volumes:
# - ./data/runtime/db:/data/db
# - ./data/runtime/mongo:/data/mongo
# - ./data/dump:/dump
command: mongod --smallfiles
......@@ -12,9 +12,9 @@ rocketchat:
environment:
- ROOT=3000
- ROOT_URL=http://yourhost:3000
- MONGO_URL=mongodb://db:27017/rocketchat
- MONGO_URL=mongodb://mongo:27017/rocketchat
links:
- db:db
- mongo:mongo
ports:
- 3000:3000
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment