-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
78 lines (73 loc) · 1.69 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3'
networks:
mynetwork:
ipam:
driver: default
config:
- subnet: 182.17.0.0/16
gateway: 182.17.0.1
services:
das-database:
image: slagga/das-database:latest
restart: always
working_dir: /app
entrypoint: [ "/app/das-database", "--config", "/app/config/config.yaml" ]
ports:
- "8118:8118"
volumes:
- $PWD/config/config.database.yaml:/app/config/config.yaml
depends_on:
- mysql
networks:
- mynetwork
mysql:
image: mysql/mysql-server:8.0
restart: always
ports:
- "3306:3306"
volumes:
- $PWD/mysql-data:/var/lib/mysql
- $PWD/init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
MYSQL_ROOT_PASSWORD: 123456
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:
- mynetwork
mongo:
image: mongo:4.2
restart: always
ports:
- "27017:27017"
volumes:
- $PWD/mongo-data:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=123456
- MONGO_INITDB_DATABASE=smt
networks:
- mynetwork
redis:
image: redis:5.0
restart: always
ports:
- "6379:6379"
networks:
- mynetwork
sub-account:
image: slagga/sub-account:latest
restart: always
working_dir: /app
entrypoint: [ "/app/sub-account", "--config", "/app/config/config.yaml" ]
ports:
- "8125:8125"
- "8126:8126"
volumes:
- $PWD/config/config.yaml:/app/config/config.yaml
depends_on:
- das-database
- mongo
- redis
networks:
- mynetwork