forked from deving-zone-community/community-furnace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
100 lines (93 loc) · 2.4 KB
/
docker-compose.yml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: "3.1"
services:
# Local Migaloo chain
init-migaloo-genesis:
build:
context: ./local-migaloo
entrypoint:
- sh
command:
- -c
- "if [ -e /root/.migalood/config/genesis.json ]; then echo \"Genesis exists\"; else /config.sh; fi"
volumes:
- "./.migalood:/root/.migalood"
local-migaloo:
build:
context: ./local-migaloo
environment:
- RUN_LOCAL=true
ports:
- "1317:1317"
- "26657:26657"
volumes:
- "./.migalood:/root/.migalood"
healthcheck:
test: ["CMD", "sh", "-c", "curl http://localhost:26657/abci_info? 2>/dev/null | grep -q 'last_block_height'"]
interval: 2s
timeout: 5s
depends_on:
init-migaloo-genesis:
condition: service_completed_successfully
build-contract:
image: cosmwasm/rust-optimizer:0.12.13
volumes:
- type: bind
source: ./
target: /code
- type: volume
source: white_whale_furnace_cache
target: /code/target
- type: volume
source: registry_cache
target: /usr/local/cargo/registry
upload-contract:
build:
context: ./local-migaloo
entrypoint:
- "upload"
volumes:
- "./scripts/upload_to_local_in_compose.sh:/usr/local/bin/upload"
- "./.migalood:/root/.migalood"
- "./artifacts:/artifacts"
- "./public/config.json:/public/config.json"
depends_on:
build-contract:
condition: service_completed_successfully
local-migaloo:
condition: service_healthy
# Burn from temporary accounts does not run by default.
# run with docker-compose --profile burner up
# or if local chain is running docker-compose up burner-accounts
burner-accounts:
build:
context: ./local-migaloo
profiles:
- burner
entrypoint:
- "burn"
volumes:
- "./scripts/burn_multiple_accounts.sh:/usr/local/bin/burn"
- "./.migalood:/root/.migalood"
- "./public/config.json:/public/config.json"
depends_on:
local-migaloo:
condition: service_healthy
frontend:
image: node:18
environment:
- NODE_ENV=development
command:
- npm
- run
- dev
ports:
- "3000:3000"
working_dir: /app
volumes:
- ".:/app"
depends_on:
upload-contract:
condition: service_completed_successfully
volumes:
white_whale_furnace_cache:
registry_cache: