forked from LayerZero-Labs/devtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.templates.yaml
44 lines (42 loc) · 1.41 KB
/
docker-compose.templates.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
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'
#
# Reusable services for docker compose
#
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'
version: "3.9"
services:
# Service that contains the whole project
#
# It requires the PACKAGE argument that specifies
# the target package it should build (e.g. @layerzerolabs/utils-evm-hardhat)
project:
build:
context: .
target: development
args:
# We'll provide a way to override the base image
# build argument using an environment variable
#
# This will allow Ci environments to override the base image easily
BASE_IMAGE: ${DEVTOOLS_BASE_IMAGE:-base}
# We'll provide a single testing MNEMONIC for the project so that the test EVM nodes
# account are in sync with the hardhat accounts
environment:
- MNEMONIC=${MNEMONIC}
logging:
driver: local
options:
max-size: "5m"
compress: "false"
# EVM node for testing purposes
evm-node:
extends:
service: project
build:
target: node-evm
args:
EVM_NODE_IMAGE: ${DEVTOOLS_EVM_NODE_IMAGE:-node-evm-hardhat}