-
Notifications
You must be signed in to change notification settings - Fork 24
/
docker-compose.defaults.yaml
76 lines (70 loc) · 1.56 KB
/
docker-compose.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
69
70
71
72
73
74
75
76
version: "3.7"
volumes:
mongodb:
data:
logs:
networks:
kowalski:
services:
api:
build:
context: .
dockerfile: api.Dockerfile
image: skyportal/kowalski-api:latest
volumes:
- data:/kowalski/data
- logs:/kowalski/logs
expose:
- "4000"
# fixme:
ports:
- "4000:4000"
links:
- mongo:kowalski-mongo
restart: always
depends_on:
- mongo
networks:
- kowalski
ingester:
build:
context: .
dockerfile: ingester.Dockerfile
image: skyportal/kowalski-ingester:latest
ports:
- "8787:8787"
volumes:
- data:/kowalski/data
- logs:/kowalski/logs
links:
- mongo:kowalski-mongo
restart: always
depends_on:
- mongo
networks:
- kowalski
mongo:
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
networks:
- kowalski
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" ]