File tree 5 files changed +12
-15
lines changed
5 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ services:
9
9
environment :
10
10
- POSTGRES_PASSWORD=${PG_PASSWORD:-postgres}
11
11
networks :
12
- - stacks-blockchain
12
+ - default
13
13
profiles :
14
14
- event-replay
15
15
- stacks-blockchain
@@ -23,7 +23,7 @@ services:
23
23
env_file :
24
24
- ${SCRIPTPATH}/.env
25
25
networks :
26
- - stacks-blockchain
26
+ - default
27
27
depends_on :
28
28
- stacks-blockchain-api
29
29
profiles :
@@ -39,22 +39,20 @@ services:
39
39
image : hirosystems/stacks-blockchain-api:${STACKS_BLOCKCHAIN_API_VERSION:-latest}
40
40
container_name : stacks-blockchain-api
41
41
restart : always
42
- # volumes:
43
- # - ${SCRIPTPATH}/persistent-data/bns-data:/bns-data
44
- # - ${SCRIPTPATH}/persistent-data/mainnet/event-replay:/tmp/event-replay
45
42
ports :
46
43
- ${API_STACKS_BLOCKCHAIN_API_PORT_LOCAL:-3999}:${API_STACKS_BLOCKCHAIN_API_PORT:-3999}
47
44
env_file :
48
45
- ${SCRIPTPATH}/.env
49
46
networks :
50
- - stacks-blockchain
47
+ - default
51
48
depends_on :
52
49
- postgres
53
50
profiles :
54
51
- event-replay
55
52
- stacks-blockchain
56
53
command : ["npm", "run", "start"]
57
54
networks :
58
- stacks-blockchain :
59
- driver : bridge
60
- name : stacks
55
+ default :
56
+ name : ${DOCKER_NETWORK}
57
+ ipam :
58
+ driver : default
Original file line number Diff line number Diff line change @@ -12,11 +12,7 @@ services:
12
12
environment :
13
13
- USER_ID=${USER_ID}
14
14
networks :
15
- - stacks-blockchain
15
+ - default
16
16
profiles :
17
17
- bns
18
18
command : sh -c "/scripts/setup-bns.sh"
19
- networks :
20
- stacks-blockchain :
21
- driver : bridge
22
- name : stacks
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ services:
7
7
ports :
8
8
- ${NGINX_PROXY_PORT:-80}:80
9
9
networks :
10
- - stacks-blockchain
10
+ - default
11
11
profiles :
12
12
- stacks-blockchain
13
13
volumes :
Original file line number Diff line number Diff line change 979
979
980
980
USER_ID=$( id -u " $( whoami) " )
981
981
export USER_ID=" ${USER_ID} "
982
+ export DOCKER_NETWORK=" ${DOCKER_NETWORK} "
982
983
${VERBOSE} && log " Exporting USER_ID: ${USER_ID} "
984
+ ${VERBOSE} && log " Exporting DOCKER_NETWORK: ${DOCKER_NETWORK} "
983
985
984
986
# loop through the args and try to determine what options we have
985
987
# - simple check for logs/status/upgrade/bns since these are not network dependent
Original file line number Diff line number Diff line change 1
1
# VERBOSE=true
2
+ DOCKER_NETWORK = stacks
2
3
# ##############################
3
4
# # Stacks Blockchain API
4
5
# #
You can’t perform that action at this time.
0 commit comments