-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
57 lines (54 loc) · 1.26 KB
/
compose.yaml
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
version: '3'
networks:
dotbit:
ipam:
driver: default
config:
- subnet: 182.17.0.0/16
gateway: 182.17.0.1
services:
did-indexer-svr:
image: admindid/did-indexer-svr:latest
restart: always
working_dir: /app
entrypoint: [ "/app/did-indexer-svr", "--config", "/app/config/config.yaml" ]
ports:
- ${DID_INDEXER_SVR_PORT:-9132}:9132
volumes:
- ./config:/app/config
- ./logs:/app/logs
depends_on:
- mysql
networks:
- dotbit
extra_hosts:
- host.docker.internal:host-gateway
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "3"
mysql:
image: mysql/mysql-server:8.0
restart: always
ports:
- ${MYSQL_PORT:-3306}:3306
volumes:
- ./mysql-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${DAS_DB_PORT:-123456}
MYSQL_DATABASE: did_indexer
TZ: Asia/Shanghai
# This allows ip ranges from 182.17.0.1 to 182.17.255.255 to connect to root
MYSQL_ROOT_HOST: "182.17.%.%"
networks:
- dotbit
extra_hosts:
- host.docker.internal:host-gateway
redis:
image: redis:5.0
restart: always
ports:
- ${REDIS_PORT:-6379}:6379
networks:
- dotbit