-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 976 Bytes
/
docker-compose.yml
File metadata and controls
53 lines (49 loc) · 976 Bytes
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
version: '3.8'
services:
web:
container_name: web
build:
context: .
dockerfile: ./apps/web/Dockerfile
restart: always
ports:
- 3000:3000
networks:
- monkeyd
api:
container_name: api
build:
context: .
dockerfile: ./apps/api/Dockerfile
restart: always
ports:
- 3001:3001
networks:
- monkeyd
mongodb:
container_name: mongodb
image: mongo:latest
command: --bind_ip_all --replSet rs0
ports:
- '28017:27017'
volumes:
- mongodb_data_container:/data/db
- ./scripts/mongodb/rs-init.sh:/scripts/rs-init.sh
networks:
mongo-network:
aliases:
- mongo.localhost
ipv4_address: 172.20.0.2
volumes:
mongodb_data_container:
cache:
driver: local
networks:
monkeyd:
mongo-network:
name: mongo-network
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16
gateway: 172.20.0.254