-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·61 lines (57 loc) · 1.66 KB
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·61 lines (57 loc) · 1.66 KB
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.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: telefiledb_app
restart: unless-stopped
ports:
- "7496:7860"
volumes:
- .:/app
env_file:
- .env
environment:
- TZ=Asia/Singapore
# --- To use the integrated database, uncomment the following two lines ---
# depends_on:
# - db
# networks:
# - telefiledb_network
# --- To use the integrated database, uncomment this entire 'db' service ---
# db:
# image: mysql:8.0
# container_name: telefiledb_db
# restart: unless-stopped
# # Add this command for compatibility with older clients (like some PyMySQL versions)
# command: [--default-authentication-plugin=mysql_native_password]
# environment:
# MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} # Read from .env
# MYSQL_DATABASE: ${DB_NAME} # Read from .env
# MYSQL_USER: ${DB_USER} # Read from .env
# MYSQL_PASSWORD: ${DB_PASSWORD} # Read from .env
# ports:
# # Expose port to host for external access/debugging if needed
# - "3306:3306"
# volumes:
# - db_data:/var/lib/mysql
# networks:
# - telefiledb_network
# --- To use a web-based DB management tool, uncomment this 'adminer' service ---
# --- It depends on the 'db' service and 'telefiledb_network' being enabled ---
# adminer:
# image: adminer
# container_name: telefiledb_adminer
# restart: unless-stopped
# ports:
# - "8080:8080"
# networks:
# - telefiledb_network
# --- To use the integrated database, uncomment the following two blocks ---
# networks:
# telefiledb_network:
# driver: bridge
#
# volumes:
# db_data: