forked from jscblack/simple-douyin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
100 lines (91 loc) · 2.08 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
version: '3.9'
services:
postgres:
image: postgres:latest
container_name: simple-douyin-postgres
restart: always
environment:
POSTGRES_USER: simple_douyin
POSTGRES_PASSWORD: 1qaz0plm
POSTGRES_DB: simple_douyin_db
expose:
- "5432"
# ports:
# - "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:latest
container_name: simple-douyin-redis
restart: always
environment:
REDIS_PASSWORD: 1qaz0plm
expose:
- "6379"
# ports:
# - "6379:6379"
volumes:
- redis_data:/data
etcd:
image: bitnami/etcd:latest
container_name: simple-douyin-etcd
restart: always
environment:
- ALLOW_NONE_AUTHENTICATION=yes
expose:
- "2379"
- "2380"
# ports:
# - "2379:2379"
# - "2380:2380"
volumes:
- etcd_data:/bitnami
simple-douyin:
image: jscblack/simple-douyin:latest
container_name: simple-douyin-main
restart: always
ports:
- "18080:8888"
depends_on:
- postgres
- redis
- etcd
prometheus:
image: prom/prometheus:latest
container_name: simple-douyin-prometheus
restart: always
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- ./alert.rules:/etc/prometheus/alert.rules
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
expose:
- '9090'
depends_on:
- simple-douyin
grafana:
image: grafana/grafana:latest
container_name: simple-douyin-grafana
restart: always
volumes:
- grafana_data:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
depends_on:
- prometheus
ports:
- '13000:3000'
sakura-frp: # frp port 18080 for use
image: natfrp/frpc:latest
container_name: simple-douyin-frp
restart: always
command: '-f lc28c5p96ar95kgga6hkxx9vpifksqai:10415888,10546909'
depends_on:
- simple-douyin
volumes:
postgres_data:
redis_data:
etcd_data:
grafana_data:
prometheus_data: