Skip to content

Commit ede0ff9

Browse files
committed
play around with docker compose
1 parent e4867ea commit ede0ff9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Diff for: docker-compose.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
version: "2.1"
3+
services:
4+
openssh-server:
5+
image: lscr.io/linuxserver/openssh-server:latest
6+
container_name: openssh-server
7+
hostname: openssh-server #optional
8+
environment:
9+
- PUID=1000
10+
- PGID=1000
11+
- TZ=Etc/UTC
12+
# - PUBLIC_KEY=yourpublickey #optional
13+
# - PUBLIC_KEY_FILE=/path/to/file #optional
14+
# - PUBLIC_KEY_DIR=/path/to/directory/containing/_only_/pubkeys #optional
15+
# - PUBLIC_KEY_URL=https://github.com/username.keys #optional
16+
- SUDO_ACCESS=true #optional
17+
- PASSWORD_ACCESS=true #optional
18+
- USER_PASSWORD=datashuttle #optional
19+
# - USER_PASSWORD_FILE=/path/to/file #optional
20+
- USER_NAME=linuxserver.io #optional
21+
volumes:
22+
- /path/to/appdata/config:/config
23+
ports:
24+
- 2222:2222
25+
restart: unless-stopped

0 commit comments

Comments
 (0)