-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
94 lines (85 loc) · 2.04 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
version: '3.1'
services:
uniscan:
image: uniscan:latest
build:
context: .
command: ["rails", "server", "-b", "0.0.0.0"]
environment:
- REDIS_URL=redis://redis:6379
- DB_HOST=db
- DB_DATABASE=uniscan_development
- DB_USERNAME=root
- DB_PASSWORD=root
ports:
- '3000:3000'
volumes:
- storage_data:/app/storage:ro
uniscan_test:
image: uniscan:latest
build:
context: .
command: ["rails", "test"]
environment:
- REDIS_URL=redis://redis:6379
- DB_HOST=db
- DB_DATABASE=uniscan_test
- DB_USERNAME=root
- DB_PASSWORD=root
- RAILS_ENV=test
sidekiq:
image: uniscan:latest
build:
context: .
command: ["bundle", "exec", "sidekiq"]
environment:
- REDIS_URL=redis://redis:6379
- DB_HOST=db
- DB_DATABASE=uniscan_development
- DB_USERNAME=root
- DB_PASSWORD=root
eth_scan:
image: uniart/evm-nft-tracker
command: ["ethereum-nft-tracker", "12994586", "s"]
environment:
- REDIS_URL=redis://redis:6379
parse_token_uri:
image: uniscan:latest
build:
context: .
command: ["rails", "token_uri:parse"]
environment:
- REDIS_URL=redis://redis:6379
- DB_HOST=db
- DB_DATABASE=uniscan_development
- DB_USERNAME=root
- DB_PASSWORD=root
volumes:
- storage_data:/app/storage
update_creator:
image: uniscan:latest
build:
context: .
command: ["rails", "update_creator"]
environment:
- DB_HOST=db
- DB_DATABASE=uniscan_development
- DB_USERNAME=root
- DB_PASSWORD=root
- ETHERSCAN_APIKEY=CQZEXX84G6AQ5R8AZCII626EA43VPNJEEU
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=uniscan_development
redis:
image: redis:4.0.10
volumes:
- redis_data:/data
volumes:
db_data:
redis_data:
storage_data: