-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (44 loc) · 1009 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
35
36
37
38
39
40
41
42
43
44
45
---
services:
ansible-core:
build:
context: .
dockerfile: Dockerfile
target: final
args:
ANSIBLE_USER: ${USER}
ANSIBLE_INSTALL_REFS: ansible-core
# ANSIBLE_INSTALL_REFS: ansible-core==2.17.0
command: /bin/bash
stdin_open: true
tty: true
ansible:
build:
context: .
dockerfile: Dockerfile
target: final
args:
ANSIBLE_USER: ${USER}
ANSIBLE_INSTALL_REFS: ansible
# ANSIBLE_INSTALL_REFS: ansible==10
command: /bin/bash
stdin_open: true
# environment:
# - ANSIBLE_CONFIG=/opt/my-ansible-project/ansible.cfg # load your own custom ansible.cfg
tty: true
volumes:
- ssh:/home/${USER}/.ssh:ro
# - other:/opt/my-ansible-project:ro
volumes:
ssh:
driver: local
driver_opts:
type: none
device: ~/.ssh
o: bind
# other:
# driver: local
# driver_opts:
# type: none
# device: ~/path/to/ansible-project
# o: bind