summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: 4d5b38493383f835f47d9fc9d94b2bd729a27621 (plain)
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
version: '3.7'

x-stas: &default-stas
    image: ghcr.io/linux-nvme/nvme-stas:main
    build:
      context: .
    volumes:
        - /run/dbus:/run/dbus
        - /etc/nvme:/etc/nvme
    privileged: true
    network_mode: host

services:
  stafd:
    <<: *default-stas
    environment:
      RUNTIME_DIRECTORY: /run/stafd
      XDG_CACHE_HOME: /var/cache/stafd
      PYTHONUNBUFFERED: 1
    command: -u /usr/sbin/stafd
  stacd:
    <<: *default-stas
    environment:
      RUNTIME_DIRECTORY: /run/stacd
      XDG_CACHE_HOME: /var/cache/stacd
      PYTHONUNBUFFERED: 1
    command: -u /usr/sbin/stacd