-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
52 lines (50 loc) · 1.09 KB
/
compose.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
services:
deps:
image: deps:latest
build:
dockerfile: docker/Dockerfile
server:
image: server:latest
depends_on:
- deps
- mongodb
ports:
- 8000:3000
build:
dockerfile: docker/server/Dockerfile
environment:
NODE_ENV: production
MONGODB_URI: mongodb:27017
mongodb:
image: mongo:6
depends_on:
- deps
build:
dockerfile: mongodb/Dockerfile
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: /run/secrets/mongodb_password
MONGO_INITDB_DATABASE: js-css-features-announces
volumes:
- features_db:/data/db
secrets:
- mongodb_password
cron:
image: cron:latest
depends_on:
- deps
- mongodb
build:
dockerfile: docker/cron/Dockerfile
environment:
NODE_ENV: production
MONGODB_URI: mongodb:27017
BOT_API_TOKEN: /run/secrets/bot_api_token
TELEGRAM_CHAT_ID: -1001956753326
volumes:
features_db:
secrets:
mongodb_password:
file: ./mongodb_password.txt
bot_api_token:
file: ./bot_api_token.txt