@@ -40,7 +40,7 @@ services:
40
40
- /etc/group:/etc/group:ro
41
41
- ./config/rclone:/etc/rclone
42
42
# Workspace
43
- - ./workspace:${WORKSPACE}:rshared
43
+ - ./workspace:${WORKSPACE:-/workspace }:rshared
44
44
# Will echo to root-owned authorized_keys file;
45
45
# Avoids changing local file owner
46
46
- ./config/authorized_keys:/root/.ssh/authorized_keys_mount
@@ -50,21 +50,22 @@ services:
50
50
# SSH available on host machine port 2222 to avoid conflict. Change to suit
51
51
- ${SSH_PORT_HOST}:${SSH_PORT}
52
52
# Web UI for easy service access
53
- - ${REDIRECTOR_PORT_HOST}:1111
53
+ - ${REDIRECTOR_PORT_HOST:-1111 }:1111
54
54
# Websocket log viewer
55
- - ${LOG_VIEWER_PORT_HOST}:1122
55
+ - ${LOG_VIEWER_PORT_HOST:-1122 }:1122
56
56
# Rclone webserver for interactive configuration
57
- - ${RCLONE_PORT_HOST}:53682
57
+ - ${RCLONE_PORT_HOST:-53682 }:53682
58
58
59
59
environment :
60
60
# Don't enclose values in quotes
61
61
# Allows running true SSH alongside provider proxy SSH
62
- - SSH_PORT=${SSH_PORT}
63
- - WORKSPACE=${WORKSPACE}
64
- - WORKSPACE_SYNC=${WORKSPACE_SYNC}
65
- - CF_TUNNEL_TOKEN=${CF_TUNNEL_TOKEN}
66
- - CF_QUICK_TUNNELS=${CF_QUICK_TUNNELS}
67
- - WEB_ENABLE_AUTH=${WEB_ENABLE_AUTH}
68
- - WEB_USER=${WEB_USER}
69
- - WEB_PASSWORD=${WEB_PASSWORD}
62
+ - SSH_PORT=${SSH_PORT:-22}
63
+ - WORKSPACE=${WORKSPACE:-/workspace}
64
+ - WORKSPACE_SYNC=${WORKSPACE_SYNC:-true}
65
+ - CF_TUNNEL_TOKEN=${CF_TUNNEL_TOKEN:-}
66
+ - CF_QUICK_TUNNELS=${CF_QUICK_TUNNELS:-true}
67
+ - WEB_ENABLE_AUTH=${WEB_ENABLE_AUTH:-true}
68
+ - WEB_USER=${WEB_USER:-user}
69
+ - WEB_PASSWORD=${WEB_PASSWORD:-password}
70
+ - SERVERLESS=${SERVERLESS:-false}
70
71
# - PROVISIONING_SCRIPT=https://raw.githubusercontent.com/ai-dock/pytorch/main/config/provisioning/default.sh
0 commit comments