-
Notifications
You must be signed in to change notification settings - Fork 170
/
docker-compose.templates.yaml
71 lines (65 loc) · 1.99 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'
#
# Reusable services for docker compose
#
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'
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"
# Aptos node for testing purposes
aptos-node:
build:
dockerfile: Dockerfile
target: node-aptos
args:
APTOS_NODE_IMAGE: ${DEVTOOLS_APTOS_NODE_IMAGE:-node-aptos-local-testnet}
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}
# TON node for testing purposes
ton-node:
build:
dockerfile: Dockerfile
target: node-ton
args:
TON_NODE_IMAGE: ${DEVTOOLS_TON_NODE_IMAGE:-node-ton-my-local-ton}
logging:
driver: local
options:
max-size: "5m"
compress: "false"