Skip to content

Commit 4225a3b

Browse files
committed
update base
1 parent 632b98b commit 4225a3b

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

docker-compose.yaml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ services:
4040
- /etc/group:/etc/group:ro
4141
- ./config/rclone:/etc/rclone
4242
# Workspace
43-
- ./workspace:${WORKSPACE}:rshared
43+
- ./workspace:${WORKSPACE:-/workspace}:rshared
4444
# Will echo to root-owned authorized_keys file;
4545
# Avoids changing local file owner
4646
- ./config/authorized_keys:/root/.ssh/authorized_keys_mount
@@ -50,21 +50,22 @@ services:
5050
# SSH available on host machine port 2222 to avoid conflict. Change to suit
5151
- ${SSH_PORT_HOST}:${SSH_PORT}
5252
# Web UI for easy service access
53-
- ${REDIRECTOR_PORT_HOST}:1111
53+
- ${REDIRECTOR_PORT_HOST:-1111}:1111
5454
# Websocket log viewer
55-
- ${LOG_VIEWER_PORT_HOST}:1122
55+
- ${LOG_VIEWER_PORT_HOST:-1122}:1122
5656
# Rclone webserver for interactive configuration
57-
- ${RCLONE_PORT_HOST}:53682
57+
- ${RCLONE_PORT_HOST:-53682}:53682
5858

5959
environment:
6060
# Don't enclose values in quotes
6161
# 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}
7071
#- PROVISIONING_SCRIPT=https://raw.githubusercontent.com/ai-dock/pytorch/main/config/provisioning/default.sh

0 commit comments

Comments
 (0)