-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
56 lines (50 loc) · 1.14 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
version: "3"
services:
subtitle_api:
container_name: subtitle_api
image: hqwuzhaoyi/gpt-subtitle-api:latest
restart: always
volumes:
- /Users/admin/workspace/gpt-subtitle/uploads:/app/uploads
ports:
- ${SERVER_PORT}:${SERVER_PORT}
networks:
- subtitle_app_network
env_file:
- .env
depends_on:
- subtitle_mysql
- subtitle_redis
subtitle_web:
container_name: subtitle_web
image: hqwuzhaoyi/gpt-subtitle-web:latest
restart: always
ports:
- ${WEB_PORT}:3000
networks:
- subtitle_app_network
env_file:
- .env
subtitle_mysql:
container_name: subtitle_mysql
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
volumes:
- subtitle_mysql_data:/var/lib/mysql
ports:
- ${MYSQL_PORT}:3306
networks:
- subtitle_app_network
subtitle_redis:
container_name: subtitle_redis
image: redis:latest
ports:
- ${REDIS_PORT}:6379
networks:
- subtitle_app_network
networks:
subtitle_app_network:
volumes:
subtitle_mysql_data: