-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
41 lines (38 loc) · 1.03 KB
/
docker-compose.yaml
File metadata and controls
41 lines (38 loc) · 1.03 KB
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
services:
mongodb:
image: mongo:7.0
command: ["--replSet", "rs0", "--bind_ip_all"]
volumes:
- './volumes/mongo/db:/data/db'
- './volumes/mongo/configdb:/data/configdb'
healthcheck:
test: echo "try { rs.status() } catch (err) { rs.initiate({_id:'rs0',members:[{_id:0,host:'mongodb:27017'}]}) }" | mongosh --port 27017 --quiet
start_period: 10s
start_interval: 1s
networks:
- default
privmx-bridge:
image: 'simplito/privmx-bridge:latest'
env_file:
- path: ./bridge.env
required: false
environment:
PRIVMX_MONGO_URL: "mongodb://mongodb/"
PRIVMX_CORS_ENABLED: "true"
volumes:
- './volumes/bridge/storage:/work/privmx-bridge/storage'
- './volumes/bridge/plugins:/work/privmx-bridge/plugins'
ports:
- "9111:3000"
depends_on:
- mongodb
healthcheck:
test: pmxbridge_up
start_period: 20s
start_interval: 1s
networks:
- default
networks:
default:
name: privmx-infra-network
external: true