ceremonyclient/docker-compose.yml
Marius Scurtescu dc065cc682
multi stage Dockerfile and Taskfile (#102)
* multi-stage Dockerfile

* add build arguments for git

* add taskfile

* switch back to copying source into build stage and clean up labels

* get image name from .env

* remove top level ARGs

* update DOCKER-README with Taskfile details

* mention light and safe image

* add a backup task

* add healthcheck

* add logs-folder task

* add warnings to backup task

* allow port overriding in docker compose
2024-03-07 23:05:23 -06:00

40 lines
1.0 KiB
YAML

version: "3.8"
name: quilibrium
# See sysctl related warning in DOCKER-README.md.
# Host configuration changes are required.
services:
node:
image: ${QUILIBRIUM_IMAGE_NAME:-quilibrium}
restart: unless-stopped
deploy:
resources:
limits:
memory: 32G
reservations:
cpus: 12
memory: 16G
environment:
- DEFAULT_LISTEN_GRPC_MULTIADDR=/ip4/0.0.0.0/tcp/8337
- DEFAULT_LISTEN_REST_MULTIADDR=/ip4/0.0.0.0/tcp/8338
- DEFAULT_STATS_MULTIADDR=/dns/stats.quilibrium.com/tcp/443
ports:
- '${QUILIBRIUM_P2P_PORT:-8336}:8336/udp' # p2p
- '127.0.0.1:${QUILIBRIUM_GRPC_PORT:-8337}:8337/tcp' # gRPC
- '127.0.0.1:${QUILIBRIUM_REST_PORT:-8338}:8338/tcp' # REST
healthcheck:
test: ["CMD", "node", "--peer-id"]
interval: 30s
timeout: 5s
retries: 3
start_period: 1m
volumes:
- ./.config:/opt/ceremonyclient/node/.config
logging:
driver: "json-file"
options:
max-file: "5"
max-size: 2048m