-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
64 lines (60 loc) · 1.32 KB
/
docker-compose.yaml
File metadata and controls
64 lines (60 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "3.8"
services:
nginx:
build:
context: src
image: ghcr.io/cssnr/docker-nginx-static:latest
#environment:
# #SUID: 1000
# #STATIC: /static
# GZIP_TYPES: "*"
deploy:
replicas: 1
resources:
limits:
cpus: "2.0"
memory: 64M
volumes:
- static:/static
ports:
- "${PORT:-8000}:80"
sftp:
image: atmoz/sftp:latest
command: ${USER_NAME:-foo}:${USER_PASS:-letmein123}:${SUID:-1000}
deploy:
replicas: 1
resources:
limits:
cpus: "1.0"
memory: 64M
volumes:
- static:/home/${USER_NAME:-foo}/static
- config:/etc/ssh
ports:
- "${SSH_PORT:-2222}:22"
#openssh-server:
# image: lscr.io/linuxserver/openssh-server:latest
# environment:
# - PUID=1000
# - PGID=1000
# - TZ=Etc/UTC
# - SUDO_ACCESS=false
# - PASSWORD_ACCESS=true
# - USER_NAME=${USER_NAME:-foo}
# - USER_PASSWORD=${USER_PASS:-letmein123}
# - DOCKER_MODS=linuxserver/mods:openssh-server-rsync
# - LOG_STDOUT=true
# deploy:
# replicas: 1
# resources:
# limits:
# cpus: "1.0"
# memory: 64M
# volumes:
# - static:/static
# - config:/config
# ports:
# - "${SSH_PORT:-2222}:2222"
volumes:
static:
config: