-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
54 lines (48 loc) · 1.12 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
51
52
53
54
version: '3.8'
services:
sshd:
image: rastasheep/ubuntu-sshd:18.04
ports:
- "22222:22"
secrets:
- source: authorized_keys
target: /root/.ssh/authorized_keys
mode: 0600
mongo:
image: bitnami/mongodb:4.1.4
environment:
MONGODB_ROOT_PASSWORD: secret
networks:
default:
aliases:
- mng
mongodb:
image: bitnami/mongodb:4.1.4
ports:
- "27018:27017"
environment:
MONGODB_ROOT_PASSWORD: secret
mongodb-ssl:
image: bitnami/mongodb:4.1.4
ports:
- "27019:27017"
environment:
MONGODB_EXTRA_FLAGS: --sslMode requireSSL --sslPEMKeyFile /run/secrets/cert.pem
secrets:
- "cert.pem"
mongodb-ssl-client:
image: bitnami/mongodb:4.1.4
ports:
- "27020:27017"
environment:
MONGODB_EXTRA_FLAGS: --sslMode requireSSL --sslPEMKeyFile /run/secrets/cert.pem --sslCAFile /run/secrets/ca.pem
secrets:
- "cert.pem"
- "ca.pem"
secrets:
authorized_keys:
file: ./key_for_docker.pub
"cert.pem":
file: ./certs/quasar-mongo-travis.pem
"ca.pem":
file: ./certs/client.crt