-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 966 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
version: '3.7'
services:
mongo:
build: ./campodb
environment:
MONGO_INITDB_ROOT_USERNAME: rootQ4dGr
MONGO_INITDB_ROOT_PASSWORD: bjxTCEuda8b3
container_name: campodb
image: mongo:4
restart: always
volumes:
- ./campodb/mongo-users.js:/docker-entrypoint-initdb.d/mongo-users.js
ports:
- "27017:27017"
networks:
camponet:
ipv4_address: 177.17.0.10
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo -u root -p root --quiet
interval: 1m30s
timeout: 30s
retries: 10
start_period: 1m30s
campobot:
build: ./campobot
container_name: campobot
image: python:3
restart: always
ports:
- "443:443"
links:
- mongo
depends_on:
- mongo
networks:
camponet:
ipv4_address: 177.17.0.7
networks:
camponet:
name: camponet
ipam:
driver: default
config:
- subnet: 177.17.0.0/28