This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.ubuntu.yml
executable file
·70 lines (65 loc) · 2.06 KB
/
docker-compose.ubuntu.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3'
services:
base:
image: "saltstack_base:ubuntu"
command: "true" # https://github.com/docker/compose/issues/1284
build:
context: .
dockerfile: templates/docker/dockerfile-base.ubuntu
minion:
image: "saltstack_minion:ubuntu"
depends_on:
- base
command: "true" # https://github.com/docker/compose/issues/1284
build:
context: .
dockerfile: templates/docker/dockerfile-minion.ubuntu
master:
depends_on:
- base
image: "saltstack_master:ubuntu"
build:
context: .
dockerfile: templates/docker/dockerfile-master.ubuntu
volumes:
- .:/srv
- ./templates/etc/master:/etc/salt/master
- ./templates/etc/master.d/overrides.conf.local:/etc/salt/master.d/overrides.conf
- ./templates/etc/master.d/nacl.config:/etc/salt/master.d/nacl.config
- ./templates/etc/minion:/etc/salt/minion
- ./templates/etc/minion.d/overrides.conf.local:/etc/salt/minion.d/overrides.conf
expose:
- "4505"
- "4506"
hostname: master
tty: true
minion1:
image: "saltstack_minion:ubuntu"
depends_on:
- base
- minion
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./templates/etc/minion:/etc/salt/minion
- ./templates/etc/minion.d/overrides.conf.local:/etc/salt/minion.d/overrides.conf
hostname: minion-local-int-1
tty: true
masterless:
container_name: saltstack_masterless_1
depends_on:
- base
build:
context: .
dockerfile: templates/docker/dockerfile-masterlessminion.ubuntu
hostname: minion-local-int-masterless
ports:
- "2022:22"
volumes:
- .:/srv
- /var/run/docker.sock:/var/run/docker.sock
- ./templates/etc/master:/etc/salt/minion
- ./templates/etc/master.d/overrides.conf.local:/etc/salt/minion.d/overrides.conf
- ./templates/etc/master.d/nacl.config:/etc/salt/master.d/nacl.config
- ./templates/etc/minion.d/mode.conf.local:/etc/salt/minion.d/mode.conf
- "${HOME}/.ssh/id_rsa.pub:/root/.ssh/authorized_keys:ro"
tty: true