forked from hughdazz/PPTCopilot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
61 lines (57 loc) · 1.15 KB
/
docker-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
version: '3'
services:
mysqldb:
image: mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: now_db
container_name: some-mysql
ports:
- 3307:3306
networks:
- default
pptcopilot-editor:
build:
context: ./PPTCopilot-editor
dockerfile: Dockerfile
args:
SERVER_IP: "localhost"
ports:
- 7777:7777
container_name: ppt-copilot
networks:
- default
pptcopilot-backend:
build:
context: ./PPTCopilot-backend
dockerfile: Dockerfile
args:
MYSQL_HOST: mysqldb
MYSQL_PORT: 3306
SERVER_IP: "localhost"
restart: always
ports:
- 8080:8080
depends_on:
- mysqldb
container_name: ppt-backend
networks:
- default
# 加上host.docker.internal
extra_hosts:
- "host.docker.internal:host-gateway"
pptcopilot-project:
build:
context: ./PPTCopilot-project
dockerfile: Dockerfile
args:
SERVER_IP: "localhost"
ports:
- 9529:9529
container_name: ppt-project
networks:
- default
networks:
default:
driver: bridge