-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 807 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (35 loc) · 807 Bytes
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
version: '3.6'
networks:
default:
name: dapper_network
services:
mongo:
image: mongo:latest
container_name: mongo
volumes:
- /opt/mongo/db:/data/db
- /opt/mongo/dump:/data/dump
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- 27017:27017
healthcheck:
test: echo 'db.stats().ok' | mongo localhost:27017/test --quiet
interval: 5s
timeout: 5s
retries: 12
dapper:
image: dapper:latest
container_name: dapper
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- 389:389
- 636:636
- 1812:1812/udp
- 1389:1389
environment:
- DAPPER_MONGO_URL=mongodb://mongo:27017/dapper
depends_on:
- mongo