forked from paralink-network/paralink-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (74 loc) · 1.64 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
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
version: "3.4"
services:
paralink_node:
build:
context: .
dockerfile: Dockerfile
image: paralink_node
env_file:
- .env
environment:
DATABASE_HOST: psql
IPFS_API_SERVER_ADDRESS: /dns/ipfs/tcp/5001/http
command: /wait-for-it.sh -t 0 rabbitmq:5672 -- ./paralink-node node start --host 0.0.0.0
volumes:
- ${HOME_MOUNT_DIR}/.paralink:/home/worker/.paralink
ports:
- 7424:7424
tty: true
stdin_open: true
depends_on:
- psql
- ipfs
- rabbitmq
networks:
- backend
- frontend
restart: on-failure
celery_worker:
image: paralink_node
env_file:
- .env
command: pipenv run celery -A src.process.processor worker -l DEBUG -Q collect,execute
depends_on:
- psql
- ipfs
- rabbitmq
- paralink_node
networks:
- backend
restart: on-failure
rabbitmq:
image: rabbitmq:latest
networks:
- backend
restart: on-failure
psql:
image: postgres:13
env_file:
- .env
environment:
POSTGRES_DB: ${DATABASE_NAME}
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- psql_paralink_data:/var/lib/postgresql/data
networks:
- backend
restart: on-failure
ipfs:
image: ipfs/go-ipfs:v0.7.0
volumes:
- ${HOME_MOUNT_DIR}/.paralink/ipfs/export:/export
- ${HOME_MOUNT_DIR}/.paralink/ipfs/data:/data/ipfs
networks:
- backend
restart: on-failure
volumes:
psql_paralink_data:
networks:
frontend:
driver: bridge
backend:
driver: bridge