forked from skyportal/kowalski
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.fritz.defaults.yaml
68 lines (62 loc) · 1.42 KB
/
docker-compose.fritz.defaults.yaml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: "3.7"
volumes:
mongodb:
data:
networks:
default:
external: true
name: fritz_net
services:
api:
build:
context: .
dockerfile: api.Dockerfile
image: dmitryduev/kowalski_api:latest
volumes:
- data:/data
expose:
- "4000"
# fixme:
ports:
- "4000:4000"
links:
- mongo:kowalski-mongo
restart: always
depends_on:
- mongo
ingester:
build:
context: .
dockerfile: ingester.Dockerfile
image: dmitryduev/kowalski_ingester:latest
volumes:
- data:/data
links:
- mongo:kowalski-mongo
restart: always
depends_on:
- mongo
mongo:
# image: mongo:latest
build:
context: .
dockerfile: mongo.Dockerfile
hostname: mongo
expose:
- "27017"
# fixme:
ports:
- "27017:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=mongoadmin
- MONGO_INITDB_ROOT_PASSWORD=mongoadminsecret
- MONGO_REPLICA_SET_NAME=rs0
volumes:
- mongodb:/data/db
restart: always
healthcheck:
test: test $$(echo "rs.initiate().ok || rs.status().ok" | mongo -u $${MONGO_INITDB_ROOT_USERNAME} -p $${MONGO_INITDB_ROOT_PASSWORD} --quiet) -eq 1
interval: 10s
start_period: 20s
# run as a replica set of size 1 called rs0 using keyfile for internal authorization
command: [ "--keyFile", "/opt/keyfile", "--replSet", "rs0", "--bind_ip_all" ]