-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
executable file
·55 lines (51 loc) · 1.75 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
executable file
·55 lines (51 loc) · 1.75 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
# This file is provided as a quick way to deploy ContainerSSH for
# testing purposes. It should not be used for production.
#
# Please see the ContainerSSH reference manual for a detailed guide:
# https://containerssh.io/reference/
---
services:
# Set environment variables used by the auth config in containerssh
# Be sure to fill this out according to documentation
# config-seeder:
# image: alpine:latest
# volumes:
# - ./config:/config:Z
# env_file: "./oidc.env"
# entrypoint: ["/bin/sh", "-c"]
# command: >
# "apk add gettext &&
# envsubst < /config/config.template.yaml > /config/config.yaml"
containerssh:
# depends_on:
# config-seeder:
# condition: service_completed_successfully
image: quay.io/containerssh/containerssh:v0.5.2
ports:
- 2222:2222
volumes:
# Mount the ContainerSSH config.
- ./config/config.yaml:/etc/containerssh/config.yaml:Z
# Mount the SSH host key into the container.
# This should be generated using ./generate_keys.sh or openssl
- ./ssh_host_rsa_key:/var/secrets/ssh_host_rsa_key:Z
- ./ssh_host_ed25519_key:/var/secrets/ssh_host_ed25519_key:Z
# We are mounting the Docker socket so ContainerSSH can start containers.
# - type: bind
# source: /var/run/docker.sock
# target: /var/run/docker.sock
# bind:
# selinux: "z"
# Using podman socket, uid 1000 for testing
- /var/run/docker.sock:/var/run/docker.sock:Z
# Running as root DO NOT DO THIS
user: "0:0"
# Auth server used for testing
auth:
image: python
volumes:
- ./auth/:/auth:Z
entrypoint: ["/bin/sh", "-c"]
command: >
"pip install -r /auth/requirements.txt &&
python3 /auth/auth.py"