forked from dephy-io/dephy-vending_machine-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
85 lines (80 loc) · 3.26 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
services:
postgres:
image: postgres:16
restart: always
environment:
POSTGRES_USER: dephy
POSTGRES_PASSWORD: dephy
volumes:
- postgres_data:/var/lib/postgresql/data
- ./docker-compose-postgres-init/messaging_network_migrations:/messaging_network_migrations
- ./docker-compose-postgres-init/decharge-controller-docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- ./examples/decharge-controller/migrations:/decharge_controller_server_migrations
ports:
- "6432:5432"
dephy-messaging-network:
depends_on:
- postgres
image: dephyio/dephy-messaging-network:master
restart: always
environment:
RUST_LOG: "info,dephy_messaging_network=debug"
RUST_BACKTRACE: "1"
command: "serve --pg-url 'postgresql://dephy:dephy@postgres:5432/dephy_messaging_network' --api-addr 0.0.0.0:8000"
ports:
- "8000:8000"
dephy-decharge-controller-server:
depends_on:
- dephy-messaging-network
image: dephyio/dephy-vending-machine-examples:main
restart: always
entrypoint: /usr/bin/dephy-decharge-controller-server
environment:
RUST_LOG: "debug"
RUST_BACKTRACE: "1"
volumes:
- ./keypairs/bot.demo.json:/opt/dephy-vending-machine-examples/data/solana-keypair
command: >
--nostr-relay 'ws://dephy-messaging-network:8000'
--key '80ed9975bc5c18c8852c202e4ddc0ae62abf7d9484c3a0d425f501623907129b'
--solana-rpc-url "${SOLANA_RPC_URL:-http://host.docker.internal:8899}"
--pg-url 'postgresql://dephy:dephy@postgres:5432/dephy_decharge_controller_server'
dephy-decharge-controller-node-1:
depends_on:
- dephy-messaging-network
image: dephyio/dephy-vending-machine-examples:main
restart: always
entrypoint: /usr/bin/dephy-decharge-controller-node
user: root # have to be root to write key file to data directory
environment:
RUST_LOG: "debug"
RUST_BACKTRACE: "1"
volumes:
- dephy_decharge_controller_node_1_data:/opt/dephy-vending-machine-examples/data:rw
command: >
--nostr-relay 'ws://dephy-messaging-network:8000'
--solana-rpc-url "${SOLANA_RPC_URL:-http://host.docker.internal:8899}"
--machine-pubkeys 'd041ea9854f2117b82452457c4e6d6593a96524027cd4032d2f40046deb78d93'
--admin-pubkey '90b6bb6472b2609c63dfb588aa1a10780dc043ffc0ab2349679c50644c0bc445'
dephy-gacha-controller:
depends_on:
- dephy-messaging-network
image: dephyio/dephy-vending-machine-examples:main
restart: always
entrypoint: /usr/bin/dephy-gacha-controller
user: root # have to be root to write key file to data directory
environment:
RUST_LOG: "debug"
RUST_BACKTRACE: "1"
volumes:
- dephy_gacha_controller_data:/opt/dephy-vending-machine-examples/data:rw
- ./keypairs/bot.demo.json:/opt/dephy-vending-machine-examples/data/solana-keypair
command: >
--nostr-relay 'ws://dephy-messaging-network:8000'
--solana-rpc-url "${SOLANA_RPC_URL:-http://host.docker.internal:8899}"
--machine-pubkeys 'd041ea9854f2117b82452457c4e6d6593a96524027cd4032d2f40046deb78d93'
--admin-pubkey 'd041ea9854f2117b82452457c4e6d6593a96524027cd4032d2f40046deb78d93'
volumes:
postgres_data:
dephy_decharge_controller_node_1_data:
dephy_gacha_controller_data: