-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
49 lines (46 loc) · 1.24 KB
/
compose.yaml
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
version: '3'
services:
postgres:
image: postgres:latest
restart: always
user: 1000:1000
ports:
- ${POSTGRES_PORT:-5432}:5432
environment:
POSTGRES_USER: mercury
POSTGRES_PASSWORD: mercury
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- /etc/passwd:/etc/passwd:ro
- $PROJECT_DIR/postgres/data:/var/lib/postgresql/data/pgdata
- $PROJECT_DIR/postgres/initdb:/docker-entrypoint-initdb.d
- $PROJECT_DIR/postgres/postgres.conf:/etc/postgresql/postgresql.conf
networks:
- ckb-mainnet
command: postgres -c config_file=/etc/postgresql/postgresql.conf
ckb-node:
image: nervos/ckb:latest
# user: root
restart: always
working_dir: /var/lib/ckb
entrypoint: /bin/docker-entrypoint.sh
command: run
ports:
- ${CKB_RPC_PORT:-8114}:8114
- ${CKB_P2P_PORT:-8115}:8115
- ${CKB_WS_PORT:-28114}:28114
environment:
CKB_CHAIN: ${CKB_NETWORK}
PATH: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
volumes:
- $PROJECT_DIR/ckb-node:/var/lib/ckb
networks:
- ckb-mainnet
deploy:
resources:
limits:
memory: 3000M
reservations:
memory: 2000M
networks:
ckb-mainnet: