forked from Joystream/storage-squid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (69 loc) · 1.79 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
version: '3'
services:
squid_db:
container_name: squid_db
hostname: squid-db
image: postgres:14
restart: unless-stopped
environment:
POSTGRES_DB: squid
POSTGRES_PASSWORD: squid
networks:
- joystream
ports:
- '${DB_PORT}:${DB_PORT}'
command: ['postgres', '-c', 'config_file=/etc/postgresql/postgresql.conf', '-p', '${DB_PORT}']
shm_size: 1g
volumes:
- squid_db_data:/var/lib/postgresql/data
- ./db/postgres.conf:/etc/postgresql/postgresql.conf
squid_processor:
container_name: squid_processor
hostname: squid-processor
image: node:18
restart: unless-stopped
env_file:
- .env
- .docker.env
ports:
- '127.0.0.1:${PROCESSOR_PROMETHEUS_PORT}:${PROCESSOR_PROMETHEUS_PORT}'
- '[::1]:${PROCESSOR_PROMETHEUS_PORT}:${PROCESSOR_PROMETHEUS_PORT}'
networks:
- joystream
depends_on:
- squid_db
volumes:
- type: bind
source: .
target: /storage-squid
working_dir: /storage-squid
command: ['make', 'process']
squid_graphql-server:
container_name: squid_graphql-server
hostname: squid-graphql-server
image: node:18
restart: unless-stopped
env_file:
- .env
- .docker.env
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=${TELEMETRY_ENDPOINT}
depends_on:
- squid_db
volumes:
- type: bind
source: .
target: /storage-squid
working_dir: /storage-squid
command: ['npm', 'run', 'graphql-server-start']
ports:
- '${GQL_PORT}:${GQL_PORT}'
networks:
- joystream
volumes:
squid_db_data:
# Join default joystream network (from joystream monorepo docker-compose.yml) to connect will Argus/Colossus nodes
networks:
joystream:
external: true
name: joystream_default