-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (50 loc) · 1.09 KB
/
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
version: "3.7"
services:
service:
build:
context: ./
ports:
- "9000:9000"
env_file:
- .env
volumes:
- .:/app
depends_on:
database:
condition: service_started
cache:
condition: service_started
ipfs:
condition: service_healthy
database:
image: 'postgres:latest'
ports:
- 5432:5432
env_file:
- .env
volumes:
- ./db_data/:/var/lib/postgresql/data/
cache:
image: "redis:alpine"
restart: always
ports:
- '6379:6379'
volumes:
- ./cache_data/:/data
ipfs:
image: ipfs/kubo:latest
ports:
- "5001:5001" # ipfs api - expose if needed/wanted
- "8080:8080" # ipfs gateway - expose if needed/wanted
# - "4001:4001" # ipfs swarm - expose if needed/wanted
env_file:
- .env
volumes:
- ./ipfs_data:/data/ipfs
- ./:/data
healthcheck:
# cid of an empty directory
test: ipfs dag stat /ipfs/QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn || exit 1
interval: 5s
retries: 5
start_period: 10s