mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Cleaning up mongo
This commit is contained in:
parent
ac63b83a82
commit
4d87b88022
2 changed files with 8 additions and 2 deletions
|
@ -1,4 +1,11 @@
|
|||
---
|
||||
- name: Permissions for mongo
|
||||
become: yes
|
||||
file:
|
||||
state: directory
|
||||
mode: 0777
|
||||
path: /var/log/mongodb
|
||||
|
||||
- name: Start db-mongo docker container
|
||||
become: yes
|
||||
docker_container:
|
||||
|
@ -8,7 +15,7 @@
|
|||
container_default_behavior: no_defaults
|
||||
restart_policy: unless-stopped
|
||||
network_mode: host
|
||||
command: mongod --config /etc/mongod.conf
|
||||
command: --config /etc/mongod.conf
|
||||
volumes:
|
||||
- /mnt/{{ inventory_hostname | regex_replace('db-|-', '') }}:/data/db
|
||||
- /srv/newsblur/ansible/roles/mongo/templates/mongo.conf:/etc/mongod.conf
|
||||
|
|
|
@ -21,7 +21,6 @@ systemLog:
|
|||
# network interfaces
|
||||
net:
|
||||
port: 27017
|
||||
bindIp: 127.0.0.1
|
||||
bindIpAll: true
|
||||
|
||||
# how the process runs
|
||||
|
|
Loading…
Add table
Reference in a new issue