-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (33 loc) · 823 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (33 loc) · 823 Bytes
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
version: '3'
volumes:
pgdata: {}
master_pki: {}
services:
db:
image: postgres:13-alpine
profiles:
- database
environment:
POSTGRES_DB: salt
POSTGRES_PASSWORD: password
volumes:
- pgdata:/var/lib/postgresql/data
- ./data/postgres/init:/docker-entrypoint-initdb.d
salt-master:
build:
context: .
dockerfile: ./images/Dockerfile.salt-master-ubuntu20.04
volumes:
- ./data/master/salt:/srv/salt
- ./data/master/pillar:/srv/pillar
- ./data/master/config:/etc/salt/master.d
- master_pki:/etc/salt/pki
hostname: salt-master
salt-minion:
build:
context: .
dockerfile: ./images/Dockerfile.salt-minion-ubuntu20.04
depends_on:
- salt-master
volumes:
- ./data/minion/config:/etc/salt/minion.d