-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
81 lines (74 loc) · 1.84 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
version: "3.7"
# networks:
# default:
# ipam:
# driver: default
# config:
# - subnet: 192.168.1.0/24
volumes:
mongo_data:
services:
mongodb:
image: mongo:4.0
restart: always
ports:
- "27017:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGODB_USUARIO}
- MONGO_INITDB_ROOT_PASSWORD=${MONGODB_SENHA}
volumes:
- mongo_data:/data/db
mongo-express:
depends_on:
- mongodb
image: mongo-express:0.49
restart: always
ports:
- "8081:8081"
environment:
ME_CONFIG_BASICAUTH_USERNAME: web
ME_CONFIG_BASICAUTH_PASSWORD: senha
ME_CONFIG_MONGODB_ADMINUSERNAME: ${MONGODB_USUARIO}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${MONGODB_SENHA}
ME_CONFIG_MONGODB_SERVER: mongodb
ME_CONFIG_SITE_BASEURL: /mongo-express/
node:
depends_on:
- mongodb
build:
context: .
image: convid/node-accounts-backend
restart: always
ports:
- "9999:9999"
environment:
- URL_MONGODB_SENHA=mongodb://${MONGODB_USUARIO}:${MONGODB_SENHA}@mongodb:27017/db_convid?authMechanism=DEFAULT&authSource=admin
- BASE_DOMAIN=localhost:9999
- SSH_HOST=localhost
- SSH_PORT=2222
- SSH_PORT_INTERNAL=2222
- TUNNEL_PORT_RANGE=3000-60000
##JWT Confs
- KEY_USING_SECRET=true
- ISSUER_NAME=ConvidDocker
- EXPIRATION_TIME=1h
- ALGORITHM=RS512
- PRIVATE_KEY=rs-prv-key
- PUBLIC_KEY=rs-pub-key
secrets:
- rs-prv-key
- rs-pub-key
prometheus:
image: flaviostutz/prometheus:latest
restart: always
ports:
- "9090:9090"
environment:
- SCRAPE_INTERVAL=5s
- SCRAPE_TIMEOUT=5s
- STATIC_SCRAPE_TARGETS=node-accounts-backend@node:9999
secrets:
rs-prv-key:
file: ./test_rsa.key
rs-pub-key:
file: ./test_rsa.pub