-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
85 lines (77 loc) · 2.56 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
version: '3'
services:
ganache_db:
image: trufflesuite/ganache:v7.7.3
restart: unless-stopped
# command: --database.dbPath /ganache_db --chain.chainId 1337 --chain.networkId 72 -h 0.0.0.0 -e 1000000
command: --database.dbPath /ganache_db --chain.chainId 1337 --chain.networkId 72 -h 0.0.0.0 --wallet.accounts "0x5714ad5f65fb27cb0d0ab914db9252dfe24cf33038a181555a7efc3dcf863ab3, 1000000000000000000000000" --wallet.accounts "0xad740a17686169082f3148dcec143e4730fc69a636d710cb8e4e23ef966feadd, 1000000000000000000000000" "0xdd11160def74259a8cfcb0282702ab65c1388cf4e0265f567fe0a3707957d810, 1000000000000000000000000"
ports:
- 8545:8545
environment:
- VIRTUAL_PORT=8545
- VIRTUAL_HOST=ganache.luce.137.120.31.102.nip.io
- LETSENCRYPT_HOST=ganache.luce.137.120.31.102.nip.io
volumes:
- ${STORAGE_PATH:-./data}/ganache_db:/ganache_db
postgres_db:
image: postgres
restart: unless-stopped
depends_on:
- ganache_db
ports:
- 5432:5432
environment:
- POSTGRES_PASSWORD=luce
- POSTGRES_USER=vagrant
- POSTGRES_DB=lucedb
volumes:
- ${STORAGE_PATH:-./data}/postgres_db:/var/lib/postgresql/data
- ./scripts/init_postgres.sh:/docker-entrypoint-initdb.d/init_postgres.sh
luce_server:
build: .
# image: vjaiman/luce
depends_on:
- postgres_db
- ganache_db
ports:
- "8000:8000"
restart: unless-stopped
volumes:
- ./:/luce
environment:
- JUPYTER_TOKEN=luce
# Nginx reverse proxy
- VIRTUAL_PORT=8000
- VIRTUAL_HOST=luce.137.120.31.102.nip.io
- LETSENCRYPT_HOST=luce.137.120.31.102.nip.io
# PostgreSQL config
- DJANGO_USE_PSQL=true
- POSTGRES_PASSWORD=luce
- POSTGRES_USER=vagrant
- POSTGRES_DB=lucedb
# Ideally the users/password should be defined here
# And automatically added to the database at start
- PROVIDER_PASSWORD=provider
- REQUESTER_PASSWORD=requester
# jupyterlab:
# image: jupyter/base-notebook
# # build: ./luce_vm/jupyter
# restart: unless-stopped
# user: root
# ports:
# - 8889:8888
# volumes:
# - ./src/notebooks:/home/jovyan/work
# environment:
# - JUPYTER_TOKEN=password
# - GRANT_SUDO=yes
# - JUPYTER_ENABLE_LAB=yes
# ethereum-node:
# image: ethereum/client-go
# ports:
# - "30303:30303"
# command: "--rpc --rpcaddr 0.0.0.0"
# volumes:
# - ./data/ethereum:/root/.ethereum