-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
64 lines (60 loc) · 1.67 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
version: '3.8'
services:
adex-postgres:
build: ./scripts/postgres
image: adex-postgres
container_name: adex-postgres
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_HOST: 'localhost'
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'postgres'
# harness_* databases are used by the `test_harness` crate for testing
# `sentry_leader` is the default database used by `sentry` for running tests and the leader
# `sentry_leader` is for running the local follower when maunally testing
# `primitives` is used for running tests in the `primitives` crate
POSTGRES_MULTIPLE_DATABASES: harness_leader,harness_follower,sentry_leader,sentry_follower,primitives
networks:
- adex-external
adex-redis:
image: redis
container_name: adex-redis
restart: always
ports:
- "6379:6379"
networks:
- adex-external
ganache-1:
build:
context: ./scripts/ethereum
args:
SNAPSHOT_CONTRACTS: snapshot_contracts_1
image: adex-ganache
container_name: adex-ganache-cli-chain_id-1
restart: always
ports:
- "8545:8545"
environment:
CHAIN_ID: 1
networks:
- adex-external
# Chain Id 1337 - the default Ganache chain id
ganache-1337:
build:
context: ./scripts/ethereum
args:
SNAPSHOT_CONTRACTS: snapshot_contracts_1337
image: adex-ganache
container_name: adex-ganache-cli-chain_id-1337
restart: always
ports:
# use a different port for this second instance of ganache-cli
- "1337:8545"
environment:
CHAIN_ID: 1337
networks:
- adex-external
networks:
adex-external: