-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
34 lines (34 loc) · 932 Bytes
/
docker-compose.yml
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
name: local
services:
kubespray:
container_name: kubespray_local
annotations:
app.stack: ansible
build:
context: .
dockerfile: Dockerfile
args:
DOCKER_IMAGE: ${DOCKER_IMAGE}
USER_ID: ${USER_ID:-1000}
GROUP_ID: ${GROUP_ID:-1000}
image: ${CUSTOM_IMAGE}
user: ${USER_ID:-1000}:${GROUP_ID:-1000}
volumes:
- ./inventory:/home/kubespray/inventory:rw,z
- ./scripts:/kubespray/scripts:rw,z
- ./.env:/kubespray/.env:ro,z
- $SSH_AUTH_SOCK:/ssh-agent
environment:
- SSH_AUTH_SOCK=/ssh-agent
- HOME=/home/kubespray
- ANSIBLE_CONFIG=/kubespray/ansible.cfg
working_dir: /kubespray
entrypoint: ["/bin/bash", "-c"]
command:
- |
echo 'Starting container'
ls -la /home/kubespray/inventory
ls -la /home/kubespray/.ssh
echo 'Container ready'
tail -f /dev/null
tty: true