-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
81 lines (77 loc) · 1.7 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
#version: "3.9"
#
#services:
# db:
# image: mysql:8.0
# volumes:
# - db_data:/var/lib/mysql
# command:
# - --default_authentication_plugin=mysql_native_password
# - --character-set-server=utf8mb4
# - --collation-server=utf8mb4_unicode_ci
# restart: always
# environment:
# MYSQL_ROOT_PASSWORD:
# MYSQL_DATABASE: terminal
#
#
# cloud-terminal:
# depends_on:
# - db
# image: 0809/cloud-terminal:v1.6
# ports:
# - "2023:2023"
# restart: unless-stopped
# environment:
# cloud-terminal_DB_HOST: db:3306
#volumes:
# db_data: {}
# cloud-terminal_data: {}
version: "3.9"
services:
db:
image: mysql:8.0
volumes:
- db_data:/var/lib/mysql
command:
- --default_authentication_plugin=mysql_native_password
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
restart: always
environment:
MYSQL_ROOT_PASSWORD: root1234
MYSQL_DATABASE: terminal
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5
cloud-terminal:
depends_on:
db:
condition: service_healthy
image: 0809/cloud-terminal:latest
ports:
- "80:80"
- "443:443"
restart: unless-stopped
environment:
DB_HOST: db
DB_PORT: "3306"
DB_USER: root
DB_PASSWORD: root1234
DB_NAME: terminal
DB_TYPE: mysql
volumes:
- ./picture:/app/picture
frontend:
image: 0809/terminal-dashboard:latest
ports:
- "8080:80"
- "8443:443"
restart: unless-stopped
environment:
API_URL: https://cloud-terminal
volumes:
db_data: {}
cloud-terminal_data: {}