-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-swarm.yaml
More file actions
73 lines (68 loc) · 1.7 KB
/
docker-compose-swarm.yaml
File metadata and controls
73 lines (68 loc) · 1.7 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
65
66
67
68
69
70
71
72
73
version: "3.8"
services:
nginx:
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
labels:
- "traefik.enable=true"
- "traefik.http.routers.static-site.rule=Host(`static-site.cssnr.com`)"
- "traefik.http.routers.static-site.entrypoints=websecure"
- "traefik.http.routers.static-site.tls=true"
- "traefik.http.services.static-site.loadbalancer.server.port=80"
#- "traefik.http.routers.static-site.tls.certresolver=le"
volumes:
- static:/static
networks:
- traefik-public
#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"
networks:
traefik-public:
external: true
volumes:
static:
config: