-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (46 loc) · 965 Bytes
/
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
version: '3'
services:
energy-householder:
hostname: energy-householder
pull_policy: always
image: ghcr.io/sanriodev/energy-householder:dev
volumes:
- .env:/home/node/.env.prod
environment:
NODE_ENV: prod
ports:
- 3000:3000
restart: unless-stopped
networks:
- mongo
mongo:
image: mongo:6.0.3
hostname: mongo
volumes:
- ./infra/mongo:/db/data:rw
- ./infra/mongo/mongo.conf:/etc/mongo/mongo.conf:ro
env_file:
- ./infra/mongo/.env
command:
- --config
- /etc/mongo/mongo.conf
ports:
- 27017:27017
healthcheck:
test:
[
'CMD',
'sh',
'-c',
'echo ''db.runCommand("ping").ok'' | mongosh localhost:27017 --quiet',
]
interval: 10s
timeout: 10s
retries: 5
start_period: 40s
restart: unless-stopped
networks:
- mongo
networks:
mongo:
name: mongo