forked from EDOHWARES/SoroMint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (50 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
55 lines (50 loc) · 1.01 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: '3.8'
services:
mongodb:
image: mongo:latest
container_name: soromint-db
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
environment:
MONGO_INITDB_DATABASE: soromint
server:
build:
context: .
dockerfile: Dockerfile
container_name: soromint-server
ports:
- "5000:5000"
env_file:
- .env
environment:
MONGO_URI: mongodb://mongodb:27017/soromint
depends_on:
- mongodb
restart: unless-stopped
event-indexer:
build:
context: .
dockerfile: Dockerfile
container_name: soromint-event-indexer
command: npm run indexer
env_file:
- .env
environment:
MONGO_URI: mongodb://mongodb:27017/soromint
depends_on:
- mongodb
restart: unless-stopped
client:
build:
context: ./client
dockerfile: Dockerfile
container_name: soromint-client
ports:
- "80:80"
depends_on:
- server
restart: unless-stopped
volumes:
mongodb_data: