-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
106 lines (98 loc) · 2.09 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
services:
db:
image: parallelo3301/cicada-pgsql:0.2
environment:
POSTGRES_PASSWORD: postgres
volumes:
- db-data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- internal
- core
backend:
image: parallelo3301/cicada-backend:0.2
depends_on:
- db
ports:
- "3333:3333"
networks:
- internal
frontend:
image: parallelo3301/cicada-frontend:0.2
depends_on:
- backend
ports:
- "3000:3000"
volumes:
- ./frontend:/app/src
environment:
API_URL: http://nginx:80
NEXT_PUBLIC_API_URL: http://localhost:8080
networks:
- internal
core:
image: parallelo3301/cicada-core:0.2
depends_on:
- frontend
environment:
ENCRYPTION_KEY: ${ENCRYPTION_KEY}
DB_CONNECTION_STRING: "postgres://postgres:postgres@db:5432/cicadabank"
ports:
- "3070:3000"
networks:
- internal
- core
monero-wallet-rpc:
build:
context: .
dockerfile: ./infra/docker/monero-wallet-rpc/Dockerfile
image: cicada-monero-wallet-rpc
ports:
- 30405:30405
volumes:
- ./data/monero/:/monero/wallet
command:
- "--stagenet"
- "--daemon-address=stagenet.community.rino.io:38081"
- "--untrusted-daemon"
- "--no-initial-sync"
- "--disable-rpc-ban"
- "--disable-rpc-login"
- "--log-level=1"
- "--wallet-dir=/monero/wallet"
- "--rpc-bind-port=30405"
#- "--rpc-login=user:pass"
networks:
- core
nginx:
image: nginx:latest
ports:
- "8080:80"
depends_on:
- frontend
- backend
- core
volumes:
- ./infra/docker/nginx/nginx.conf:/etc/nginx/nginx.conf
networks:
- core
- internal
cli:
build:
context: .
dockerfile: ./infra/docker/cli/Dockerfile
image: cicada-cli
restart: unless-stopped
volumes:
- ./infra/scripts:/app/infra/scripts
networks:
- internal
networks:
core:
name: cicada_core
internal:
name: cicada_internal
volumes:
backend-data:
db-data: