This repository has been archived by the owner on Oct 31, 2019. It is now read-only.
forked from SoftInstigate/restheart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (46 loc) · 1.73 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: '2'
### Creates a named network with the default bridge driver
# The network is shared between restheart and mongodb only
# See: https://docs.docker.com/engine/userguide/networking/dockernetworks/
# See: https://docs.docker.com/engine/reference/commandline/network_create/
networks:
backend:
### Create a permanent, named data volume
# This makes much easier to identify where the mongodb data is stored on host
# See: https://docs.docker.com/engine/userguide/containers/dockervolumes/#mount-a-shared-storage-volume-as-a-data-volume
volumes:
restheart-datadb:
services:
restheart:
### Change the tag below to run a different version of RESTHeart
image: softinstigate/restheart
### Uncomment to name the container explicitly
container_name: restheart
depends_on:
- mongodb
networks:
- backend
ports:
- "8080:8080"
### Uncoment below if you want to mount a local configuration folder
### to overwrite default restheart.yml and/or security.yml
#volumes:
# - ./etc:/opt/restheart/etc:ro
mongodb:
# select a MongoDB 3.x version
image: mongo:3.6
### Name the container explicitly
container_name: restheart-mongo
environment:
# Be sure this credentials match with those in etc/restheart.yml
# $ mongo --username restheart --password R3ste4rt! --authenticationDatabase admin
MONGO_INITDB_ROOT_USERNAME: restheart
MONGO_INITDB_ROOT_PASSWORD: R3ste4rt!
command: --bind_ip_all --auth
volumes:
- restheart-datadb:/data/db
networks:
- backend
### Uncoment below if you want to map mongodb port
#ports:
# - "27017:27017"