mirror of
https://github.com/lejianwen/rustdesk-api.git
synced 2025-11-29 08:33:21 +00:00
add docker-compose-dev.yaml
This commit is contained in:
20
docker-compose-dev.yaml
Normal file
20
docker-compose-dev.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
services:
|
||||
rustdesk-api:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.dev
|
||||
# image: lejianwen/rustdesk-api
|
||||
container_name: rustdesk-api
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- RUSTDESK_API_RUSTDESK_ID_SERVER=192.168.1.66:21116
|
||||
- RUSTDESK_API_RUSTDESK_RELAY_SERVER=192.168.1.66:21117
|
||||
- RUSTDESK_API_RUSTDESK_API_SERVER=http://127.0.0.1:21114
|
||||
- RUSTDESK_API_RUSTDESK_KEY=123456789
|
||||
ports:
|
||||
- 21114:21114
|
||||
volumes:
|
||||
- ./data/rustdesk/api:/app/data #将数据库挂载出来方便备份
|
||||
- ./conf:/app/conf # config
|
||||
# - ./resources:/app/resources # 静态资源
|
||||
restart: unless-stopped
|
||||
@@ -1,9 +1,6 @@
|
||||
services:
|
||||
rustdesk-api:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.dev
|
||||
# image: lejianwen/rustdesk-api
|
||||
image: lejianwen/rustdesk-api
|
||||
container_name: rustdesk-api
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
@@ -14,7 +11,7 @@ services:
|
||||
ports:
|
||||
- 21114:21114
|
||||
volumes:
|
||||
- ./data/rustdesk/api:/app/data #将数据库挂载出来方便备份
|
||||
- ./conf:/app/conf # config
|
||||
- ./data/rustdesk/api:/app/data # database
|
||||
# - ./conf:/app/conf # config
|
||||
# - ./resources:/app/resources # 静态资源
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user