docker
This commit is contained in:
23
docker-compose.yml
Normal file
23
docker-compose.yml
Normal file
@ -0,0 +1,23 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
container_name: weipan_web
|
||||
ports:
|
||||
- "8080:80"
|
||||
volumes:
|
||||
- runtime_data:/app/runtime
|
||||
environment:
|
||||
# 数据库配置(用于生成 .env 文件)
|
||||
- database_hostname=10.100.100.88
|
||||
- database_database=0302-2
|
||||
- database_username=0302-2
|
||||
- database_password=0302-2
|
||||
- database_charset=utf8mb4
|
||||
- database_hostport=65306
|
||||
network_mode: host
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
runtime_data:
|
||||
Reference in New Issue
Block a user