-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (48 loc) · 977 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
49
50
51
52
53
54
version: "3.9"
services:
api:
restart: "unless-stopped"
build:
context: .
args:
BASE_URL: /
networks:
net:
ipv4_address: 172.101.0.1
environment:
MONGO_CONNECTION_STRING: mongodb://root:[email protected]:27017
REDIS_HOST: 172.101.0.3
REDIS_PORT: 6379
REDIS_PASSWORD: None
ports:
- "8111:80"
depends_on:
- redis
- db
db:
restart: "unless-stopped"
image: mongo
networks:
net:
ipv4_address: 172.101.0.2
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: rootPassword
volumes:
- "db-volume:/data/db"
redis:
restart: "unless-stopped"
image: redis
networks:
net:
ipv4_address: 172.101.0.3
volumes:
db-volume: {}
networks:
net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.101.0.0/16
gateway: 172.101.0.254