-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-testnet.yml
83 lines (78 loc) · 2.52 KB
/
docker-compose-testnet.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
version: '3'
# SPDX-FileCopyrightText: © 2021 Alias Developers
# SPDX-License-Identifier: MIT
services:
alias-wallet-testnet:
image: aliascash/docker-aliaswalletd:${ALIAS_VERSION}
container_name: alias-wallet-testnet
environment:
- RPCPASSWORD=${ALIAS_WALLET_RPCPASSWORD}
- RPCUSER=${ALIAS_WALLET_RPCUSER}
- TESTNET=true
ports:
- "36757:36757"
volumes:
- alias-data-testnet:/alias
deploy:
restart_policy:
condition: on-failure
delay: 3s
aliwa-server-testnet:
image: aliascash/docker-aliwa-server:${ALIWA_VERSION}
container_name: aliwa-server-testnet
environment:
- RPCPASSWORD=${ALIAS_WALLET_RPCPASSWORD}
- RPCUSER=${ALIAS_WALLET_RPCUSER}
- RPCPORT=36757
- MARIADB_HOST=aliwa-database-testnet
- MARIADB_PORT=3306 # We're inside of the docker network, so connect using the internal port instead of mapped 3307!
- MARIADB_DATABASE=${MARIADB_DATABASE}
- MARIADB_USER=${MARIADB_USER}
- MARIADB_PASSWORD=${MARIADB_PASSWORD}
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
- ALIAS_WALLET_HOST=alias-wallet-testnet
- ALIAS_CHAIN_START_SYNC_HEIGHT=${ALIAS_CHAIN_START_SYNC_HEIGHT}
- SERVER_MODE=TESTNET
# ports:
# - "1521:1521"
# - "8080:8080"
# - "5500:5500"
# volumes:
# - aliwa-data-testnet:/opt/aliwa
depends_on:
- "alias-wallet-testnet"
- "aliwa-database-testnet"
aliwa-database-testnet:
image: mariadb:${MARIADB_VERSION}
container_name: aliwa-database-testnet
environment:
- MARIADB_DATABASE=${MARIADB_DATABASE}
- MARIADB_USER=${MARIADB_USER}
- MARIADB_PASSWORD=${MARIADB_PASSWORD}
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
ports:
- "3307:3306"
volumes:
- mariadb-data-testnet:/var/lib/mysql
tor-hidden-service-testnet:
image: goldy/tor-hidden-service:${TOR_VERSION}
container_name: tor-hidden-service-testnet
links:
- aliwa-server-testnet
environment:
# Set mapping ports
SERVICE1_TOR_SERVICE_HOSTS: 3000:aliwa-server-testnet:3000,6757:aliwa-server-testnet:3000
SERVICE1_TOR_SERVICE_VERSION: '3'
# Tor v3 address private key base 64 encoded
SERVICE1_TOR_SERVICE_KEY: |
${TOR_SERVICE_KEY1}
volumes:
alias-data-testnet:
external:
name: aliwa-server_alias-data-testnet
mariadb-data-testnet:
external:
name: aliwa-server_mariadb-data-testnet
# aliwa-data-testnet:
# external:
# name: aliwa-server_aliwa-data-testnet