-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (82 loc) · 2.16 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: "2"
services:
smtp:
image: namshi/smtp:latest
mem_limit: 32m
expose:
- "25"
ports:
- "10025:25"
networks:
backend:
aliases:
- smtp.comet-watcher.com
db:
image: mongo:4.2.7
mem_limit: 64m
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: password
expose:
- "27017"
ports:
- "27017:27017"
volumes:
- "./mongo/mongo_startup.js:/docker-entrypoint-initdb.d/mongo_startup.js"
networks:
backend:
aliases:
- database.comet-watcher.com
vault:
image: vault:1.4.2
mem_limit: 64m
environment:
- VAULT_ADDR=http://127.0.0.1:8200
- VAULT_API_ADDR=http://127.0.0.1:8200
- VAULT_DEV_ROOT_TOKEN_ID=82ff7092-bb8c-11ea-9159-5309046f7c36
expose:
- "8200"
ports:
- "18200:8200"
cap_add:
- IPC_LOCK
networks:
backend:
aliases:
- vault.comet-watcher.com
vault-populator:
image: vault:1.4.2
mem_limit: 64m
cap_add:
- IPC_LOCK
command: sh -c "vault login 82ff7092-bb8c-11ea-9159-5309046f7c36 &&
vault kv put secret/applications/comet-watcher/users/admin name=Administrator password=qwerty role=admin &&
vault kv put secret/applications/comet-watcher/config
datasource.mongo_url=mongodb://comet_watcher_usr:[email protected]:27017/comet_watcher_db
datasource.database=comet_watcher_db
smtp.user=user smtp.password=admin
application.encryption_key=0123456789abcdef"
environment:
- VAULT_ADDR=http://vault.comet-watcher.com:8200
depends_on:
- vault
networks:
backend:
app:
image: eshishkin/comet-watcher:latest
mem_limit: 128m
environment:
- VAULT_HOST=http://vault.comet-watcher.com:8200
- VAULT_TOKEN=82ff7092-bb8c-11ea-9159-5309046f7c36
expose:
- "8080"
ports:
- "18080:8080"
depends_on:
- smtp
- db
- vault-populator
networks:
backend:
networks:
backend: