-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (63 loc) · 1.45 KB
/
Copy pathdocker-compose.yml
File metadata and controls
68 lines (63 loc) · 1.45 KB
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
version: '3.8'
services:
mysql:
image: mysql:8.0
container_name: pledge-mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: root123456
MYSQL_DATABASE: pledge_v22
MYSQL_USER: pledge_v22
MYSQL_PASSWORD: pledge_v22
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
- ./sql:/docker-entrypoint-initdb.d
command: --default-authentication-plugin=mysql_native_password
redis:
image: redis:6.2-alpine
container_name: pledge-redis
restart: always
command: redis-server --requirepass pledger_web3 --appendonly yes
ports:
- "6379:6379"
volumes:
- redis_data:/data
pledge-api:
image: alpine:3.18
container_name: pledge-api
restart: always
working_dir: /app
command: /app/pledge-api
environment:
CONFIG_PATH: /app/config/config.toml
ports:
- "8080:8080"
volumes:
- ./pledge-api:/app/pledge-api:ro
- ./config:/app/config:ro
- ./log:/app/log
depends_on:
- mysql
- redis
pledge-task:
image: alpine:3.18
container_name: pledge-task
restart: always
working_dir: /app
command: /app/pledge-task
environment:
CONFIG_PATH: /app/config/config.toml
ports:
- "8082:8082"
volumes:
- ./pledge-task:/app/pledge-task:ro
- ./config:/app/config:ro
- ./log:/app/log
depends_on:
- mysql
- redis
volumes:
mysql_data:
redis_data: