mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2025-04-03 04:09:15 +02:00
43 lines
953 B
YAML
43 lines
953 B
YAML
services:
|
|
# openssh
|
|
openssh:
|
|
image: linuxserver/openssh-server:latest
|
|
container_name: openssh
|
|
profiles:
|
|
- openssh
|
|
depends_on:
|
|
- caddy
|
|
restart: on-failure:5
|
|
env_file:
|
|
- ./openssh/env/openssh.env
|
|
environment:
|
|
- PUID=${PUID:-1000}
|
|
- PGID=${PGID:-1000}
|
|
volumes:
|
|
- openssh_config:/config:rw
|
|
- ./openssh/config/authorized_keys:/authorized_ssh_keys:ro
|
|
- public_data:/public:rw
|
|
- private_data:/private:rw
|
|
- caddy_data:/caddy_data:rw
|
|
- caddy_config:/caddy_config:rw
|
|
- caddy_backup:/caddy_backup:rw
|
|
networks:
|
|
- infra-network
|
|
security_opt:
|
|
- no-new-privileges:false
|
|
ports:
|
|
- 2222:2222
|
|
volumes:
|
|
openssh_config:
|
|
name: openssh_config
|
|
public_data:
|
|
name: public_data
|
|
private_data:
|
|
name: private_data
|
|
caddy_data:
|
|
name: caddy_data
|
|
caddy_config:
|
|
name: caddy_config
|
|
caddy_backup:
|
|
name: caddy_backup
|