-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
55 lines (50 loc) · 1.08 KB
/
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
55
version: '3.8'
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
restart: always
ports:
- "3000:3000"
depends_on:
- backend
volumes:
- ./frontend:/app
backend:
build:
context: ./backend
dockerfile: Dockerfile
restart: always
ports:
- "4000:4000"
depends_on:
- mongo
volumes:
- ./backend:/app
mongo:
image: mongo:latest
restart: always
ports:
- "27017:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=user_name
- MONGO_INITDB_ROOT_PASSWORD=user_password
volumes:
- mongo-data:/data/db
ipfs:
image: ipfs/kubo:latest
restart: always
ports:
- "5001:5001"
- "8080:8080"
environment:
IPFS_API_HTTPHEADERS_ACCESS_CONTROL_ALLOW_ORIGIN: '["*"]'
IPFS_API_HTTPHEADERS_ACCESS_CONTROL_ALLOW_METHODS: '["PUT", "POST", "GET"]'
IPFS_API_HTTPHEADERS_ACCESS_CONTROL_ALLOW_HEADERS: '["Authorization"]'
volumes:
- ipfs-data:/data/ipfs
- ./ipfs_st:/export
volumes:
mongo-data:
ipfs-data: