-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
63 lines (58 loc) · 1.08 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
53
54
55
56
57
58
59
60
61
62
63
services:
app:
build: .
ports:
- target: 3000
host_ip: 0.0.0.0 # this is the default, but for emphasis: exposed to everyone
published: 3000
protocol: tcp
mode: ingress
environment:
DB_CONNECT: mongodb://mongo/db?directConnection=true&readConcernLevel=majority
OID_SECRET:
RUST_LOG:
read_only: true
init: true
depends_on:
- mongo
networks:
- front-tier
- back-tier
mongo:
image: mongo:5
command: --replSet rs0
volumes:
- database:/data/db
- type: tmpfs
target: /tmp
read_only: true
networks:
- back-tier
docs:
build: docs
ports:
- target: 8080
host_ip: 0.0.0.0
published: 8080
protocol: tcp
mode: ingress
environment:
SWAGGER_JSON: /openapi.yaml
init: true
networks:
- docs
lint:
profiles:
- lint
build:
context: .
target: lint
init: true
network_mode: none
volumes:
database:
networks:
front-tier:
back-tier:
internal: true
docs: