Skip to content

Instantly share code, notes, and snippets.

@tranghaviet
Last active September 21, 2022 10:44
Show Gist options
  • Save tranghaviet/dcc51f108d5b50500df70b2f9ad9b7b6 to your computer and use it in GitHub Desktop.
Save tranghaviet/dcc51f108d5b50500df70b2f9ad9b7b6 to your computer and use it in GitHub Desktop.
# This compose file defines an Aptos Fullnode deployment.
# Read the README.md files for instruction on how to install aptos-node
version: "3.8"
services:
fullnode:
image: "${VALIDATOR_IMAGE_REPO:-aptoslabs/validator}:${IMAGE_TAG:-testnet}"
networks:
shared:
volumes:
- type: volume
source: aptos-fullnode
target: /opt/aptos/data
- type: bind
source: ./fullnode.yaml
target: /opt/aptos/etc/fullnode.yaml
- type: bind
source: ./genesis.blob
target: /opt/aptos/genesis/genesis.blob
- type: bind
source: ./waypoint.txt
target: /opt/aptos/genesis/waypoint.txt
- type: bind
source: ./keys/validator-full-node-identity.yaml
target: /opt/aptos/genesis/validator-full-node-identity.yaml
command: ["/usr/local/bin/aptos-node", "-f", "/opt/aptos/etc/fullnode.yaml"]
restart: unless-stopped
ports:
- "6182:6182"
- "80:8080"
- "9101:9101"
expose:
- 6182
- 80
- 9101
logging:
options:
max-file: "3"
max-size: "200m"
networks:
shared:
name: "aptos-docker-compose-shared"
ipam:
config:
- subnet: 172.16.1.0/24
volumes:
aptos-fullnode:
name: aptos-fullnode
# This compose file defines an Aptos Validator deployment.
# Read the README.md files for instruction on how to install aptos-node
version: "3.8"
services:
validator:
image: "${VALIDATOR_IMAGE_REPO:-aptoslabs/validator}:${IMAGE_TAG:-testnet}"
networks:
shared:
volumes:
- type: volume
source: aptos-validator
target: /opt/aptos/data
- type: bind
source: ./validator.yaml
target: /opt/aptos/etc/validator.yaml
- type: bind
source: ./genesis.blob
target: /opt/aptos/genesis/genesis.blob
- type: bind
source: ./waypoint.txt
target: /opt/aptos/genesis/waypoint.txt
- type: bind
source: ./keys/validator-identity.yaml
target: /opt/aptos/genesis/validator-identity.yaml
command: ["/usr/local/bin/aptos-node", "-f", "/opt/aptos/etc/validator.yaml"]
restart: unless-stopped
ports:
- "6180:6180"
- "6181:6181"
- "80:8080"
- "9101:9101"
expose:
- 6180
- 6181
- 9101
- 80
logging:
options:
max-file: "3"
max-size: "100m"
networks:
shared:
name: "aptos-docker-compose-shared"
ipam:
config:
- subnet: 172.16.1.0/24
volumes:
aptos-validator:
name: aptos-validator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment