-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
61 lines (58 loc) · 1.79 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# This file is subject to the terms and conditions defined by
# the LICENSE.md file and was developed by
# Gabriele Gaetano Fronzé, Sara Vallero and Stefano Lusso from
# INFN sezione Torino (IT).
# For abuse reports and other communications write to
# <gabriele.fronze at to.infn.it>
version: "2"
services:
cvmfs-client:
build:
context: ./cvmfs-client
dockerfile: Dockerfile
image: slidspitfire/cvmfs-client-latest:latest
container_name: cvmfs-client
hostname: cvmfs-client
privileged: true
env_file:
- cvmfs-variables.env
depends_on:
- cvmfs-stratum0
- cvmfs-stratum1
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
tty: true
cvmfs-stratum1:
build:
context: ./cvmfs-stratum1
dockerfile: Dockerfile
image: slidspitfire/cvmfs-stratum1-latest:latest
container_name: cvmfs-stratum1
hostname: cvmfs-stratum1
privileged: true
env_file:
- cvmfs-variables.env
depends_on:
- cvmfs-stratum0
volumes:
- /var/cvmfs-docker/stratum1/var/spool/cvmfs:/var/spool/cvmfs
- /var/cvmfs-docker/stratum1/cvmfs:/cvmfs
- /var/cvmfs-docker/stratum1/srv/cvmfs:/srv/cvmfs
- /var/cvmfs-docker/stratum1/etc/cvmfs:/etc/cvmfs
- /sys/fs/cgroup:/sys/fs/cgroup
cvmfs-stratum0:
build:
context: ./cvmfs-stratum0
dockerfile: Dockerfile
image: slidspitfire/cvmfs-stratum0-latest:latest
container_name: cvmfs-stratum0
hostname: cvmfs-stratum0
privileged: true
env_file:
- cvmfs-variables.env
volumes:
- /var/cvmfs-docker/stratum0/var/spool/cvmfs:/var/spool/cvmfs
- /var/cvmfs-docker/stratum0/cvmfs:/cvmfs
- /var/cvmfs-docker/stratum0/srv/cvmfs:/srv/cvmfs
- /var/cvmfs-docker/stratum0/etc/cvmfs:/etc/cvmfs
- /sys/fs/cgroup:/sys/fs/cgroup