forked from alephium/mining-pool
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
executable file
·59 lines (54 loc) · 1.68 KB
/
docker-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
50
51
52
53
54
55
56
57
58
59
version: "3.3"
volumes:
logs: {}
dbdata: {}
networks:
backend:
services:
mining-pool:
# replace with the image name (and version) you have built using the provided Dockerfile
image: mining-pool:latest
# optional automatic build step, if an image was not already built
build: .
container_name: mining-pool
depends_on:
- redis
- postgres
restart: unless-stopped
ports:
- 20032:20032
volumes:
# Pool logs will be stored on a volume called "logs", and can be mounted to a local path
# Due to the Node user, mounts need to be owned by 1000:1000:
# mkdir ./logs && chown 1000:1000 ./logs && chmod 644 ./logs
# - ./logs:/home/node/mining-pool/logs
- logs:/home/node/mining-pool/logs
# The following line requires your own config file in the current folder
# Please refer to the Readme for the sections "persistence" and "redis" in a Docker setup
- ./composePoolConfig.json:/home/node/mining-pool/lib/config.json
networks:
- backend
redis:
image: redis:latest
container_name: mining-redis
ports:
# still here only for debugging purposes, not required
- 6379:6379
command: redis-server
restart: unless-stopped
networks:
- backend
postgres:
image: postgres:latest
container_name: mining-postgres
ports:
# here for exposing the db to an admin tool, while not conflicting with
# the default port of an eventual other PostgreSQL installation on the same host
- 25432:5432
volumes:
- dbdata:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
restart: unless-stopped
networks:
- backend