Last active
July 27, 2017 15:22
-
-
Save schors/c5ba1a221eaed520b80aca8440594f12 to your computer and use it in GitHub Desktop.
Dockerized ssh + pam_docker + environment containers example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.3' | |
services: | |
php71env: | |
build: | |
context: ./php71-build | |
# OVERLORD_HOST and hostname - for pretty PS1 prompt (OVERLORD_HOST)USER@HOSTNAME: | |
# Usually this is the name of main node | |
environment: | |
- OVERLORD_HOST=arrakis | |
container_name: env_php71_rev01 | |
hostname: php71env | |
volumes: | |
- /home:/home | |
- /var/opt/docker-env-etc:/var/opt/docker-env-etc | |
- /var/opt/docker-crontabs/php71:/var/spool/cron/crontabs | |
logging: | |
driver: syslog | |
options: | |
tag: php71 | |
restart: always | |
php56env: | |
build: | |
context: ./php56-build | |
environment: | |
- OVERLORD_HOST=arrakis | |
container_name: env_php56_rev01 | |
hostname: php56env | |
volumes: | |
- /home:/home | |
- /var/opt/docker-env-etc:/var/opt/docker-env-etc | |
- /var/opt/docker-crontabs/php56:/var/spool/cron/crontabs | |
logging: | |
driver: syslog | |
options: | |
tag: php56 | |
restart: always | |
pamsshd: | |
build: | |
context: ./pamsshd | |
container_name: pamsshd | |
ports: | |
- "2022:22" | |
pid: "host" | |
privileged: true | |
volumes: | |
- /home:/home | |
- /var/opt/docker-env-etc:/var/opt/docker-env-etc | |
- /var/opt/security:/etc/security | |
- /var/run:/var/opt/docker-sock | |
logging: | |
driver: syslog | |
options: | |
tag: pamsshd | |
restart: always | |
php56apache: | |
build: | |
context: ./php56apache-build | |
volumes: | |
- /home:/home | |
logging: | |
driver: syslog | |
options: | |
tag: php56apache | |
restart: always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment