-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (58 loc) · 1.27 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
# version: '3'
# Networking: https://www.architect.io/blog/2023-03-23/manage-networking-with-docker-compose/
services:
mysql:
build:
context: ./docker/mysql
dockerfile: Dockerfile
expose:
- 3306
environment:
MYSQL_RANDOM_ROOT_PASSWORD: yes
MYSQL_DATABASE: bilibili_database
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_USER: server
MYSQL_PASSWORD: y2A@kw9&
container_name: bilibili-mysql
restart: always
networks:
- backend
command: --default-authentication-plugin=caching_sha2_password
redis:
build:
context: ./docker/redis
dockerfile: Dockerfile
expose:
- 6379
networks:
- backend
container_name: bilibili-redis
restart: always
server:
build:
context: .
dockerfile: Dockerfile
container_name: bilibili-server
networks:
- backend
expose:
- 8998
restart: always
depends_on:
- redis
- mysql
lagrange:
image: ghcr.io/lagrangedev/lagrange.onebot:edge
container_name: bilibili-lagrange
volumes:
- ./docker/lagrange/lagrange_data:/app/data
networks:
- backend
environment:
- UID=1000
- GID=1000
restart: always
depends_on:
- server
networks:
backend: