blob: 243b2828da566b92ff1afcaf05d5bb0bcb9a1ea8 (
plain) (
blame)
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
|
version: "3.7"
services:
web:
image: web
build:
context: ./
networks:
- webnet
- dbnet
ports:
- "19009:9000"
cap_drop:
- ALL
environment:
- SERVER_DEPLOYMENT_TYPE=test
- SERVER_LISTEN_PORT=9000
depends_on:
- mongo
mongo:
image: mongo:5.0
networks:
- dbnet
restart: on-failure
ports:
- "27117:27017"
- "127.0.0.1:27118:27018"
- "127.0.0.1:27119:27019"
volumes:
- db-data:/data/db
env:
- MONGO_INITDB_ROOT_USERNAME_FILE=/run/secrets/mongo_user
- MONGO_INITDB_ROOT_PASSWORD_FILE=/run/secrets/mongo_pass
secrets:
- mongo_user
- mongo_pass
networks:
webnet:
dbnet:
volumes:
db-data:
secrets:
mongo_user:
file: ./mongo_user
mongo_pass:
file: ./mongo_pass
|