-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
110 lines (103 loc) · 2.16 KB
/
docker-compose.yml
File metadata and controls
110 lines (103 loc) · 2.16 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
version: '3.8'
services:
redis:
image: redis:alpine
restart: always
networks:
- dweb-network
ipfs:
image: ipfs/kubo:latest
privileged: true
ports:
- "4001:4001"
- "4001:4001/udp"
volumes:
- ./remove-lockfile.sh:/container-init.d/remove-lockfile.sh:ro
- ipfs_data:/data/ipfs
- ipfs_export:/export
environment:
- IPFS_PROFILE=server
restart: always
healthcheck:
test: ["CMD", "ipfs", "id"]
interval: 30s
timeout: 10s
retries: 3
networks:
- dweb-network
file-server:
build:
context: ./dweb-be
dockerfile: Dockerfile.filesrv
ports:
- "${FILE_SERVER_PORT:-5100}:5100"
volumes:
- sqlite-db:/usr/src/app/database
- ./storage:/usr/src/app/storage
env_file:
- dweb-be/.env
depends_on:
redis:
condition: service_started
restart: always
networks:
- dweb-network
deploy-service:
build:
context: ./dweb-be
dockerfile: Dockerfile.deploysrv
ports:
- "${DEPLOY_SERVICE_PORT:-5200}:5200"
volumes:
- sqlite-db:/usr/src/app/database
env_file:
- dweb-be/.env
depends_on:
redis:
condition: service_started
restart: always
networks:
- dweb-network
pinning-service:
build:
context: ./dweb-be
dockerfile: Dockerfile.pinsrv
ports:
- "${PINNING_SERVICE_PORT:-5300}:5300"
volumes:
- sqlite-db:/usr/src/app/database
env_file:
- dweb-be/.env
depends_on:
redis:
condition: service_started
restart: always
networks:
- dweb-network
frontend:
build:
context: ./dweb-fe
dockerfile: Dockerfile
ports:
- "${FRONTEND_PORT:-3000}:3000"
depends_on:
deploy-service:
condition: service_started
file-server:
condition: service_started
pinning-service:
condition: service_started
restart: always
networks:
- dweb-network
networks:
dweb-network:
volumes:
ipfs_data:
ipfs_export:
sqlite-db:
driver: local
driver_opts:
type: none
o: bind
device: ./storage/sqlite-db