generated from mazgi/template.containerized-provisioning-project
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (34 loc) · 897 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
x-service-provisioning-base: &provisioning-base
build:
args:
GID: ${GID:-0}
UID: ${UID:-0}
context: Dockerfile.d/provisioning
command:
- zsh
- -ic
- |
sleep infinity
environment:
ANSIBLE_CONFIG: /project/config/ansible.cfg
user: "${UID:-0}:${GID:-0}"
volumes:
- provisioning-home-developer:/home/developer
- provisioning-home-root:/root # for macOS
- /var/run/docker.sock:/var/run/docker.sock
- ${HOME}/.ssh:/root/.ssh:ro # for macOS
- ${HOME}/.ssh:/home/developer/.ssh:ro
- ./config:/project/config
- ./provisioning:/project/workspace
- ./scripts:/project/scripts
- ./tmp/provisioning:/tmp/provisioning
working_dir: /project/workspace
services:
provisioning:
<<: *provisioning-base
version: "3.8"
volumes:
provisioning-home-developer:
driver: local
provisioning-home-root:
driver: local