-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose-test.yaml
More file actions
53 lines (51 loc) · 1.14 KB
/
docker-compose-test.yaml
File metadata and controls
53 lines (51 loc) · 1.14 KB
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
version: "3"
services:
ceph:
logging:
driver: "none"
privileged: true
restart: always
image: quay.io/ceph/demo:${CEPH_DEMO_TAG:-main-985bb83-main-centos-arm64-stream8-aarch64} # for ARM
# image: quay.io/ceph/demo # alternative image not for ARM
command: demo
environment:
MON_IP: 192.168.55.2
CEPH_PUBLIC_NETWORK: 192.168.55.0/24
LANG: en_US.utf8
OSD_TYPE: directory
volumes:
- ceph-conf:/etc/ceph
networks:
ceph-net-tst:
ipv4_address: "192.168.55.2"
api-test:
depends_on:
- ceph
deploy:
restart_policy:
condition: on-failure
delay: 2s
max_attempts: 5
restart: always
volumes:
- ceph-conf:/etc/ceph
networks:
ceph-net-tst:
ipv4_address: "192.168.55.3"
build:
context: .
dockerfile: ./test/Dockerfile
volumes:
# volume to share ceph creds between services
ceph-conf:
driver: local
driver_opts:
o: "size=128m,uid=1000,mode=777"
device: tmpfs
type: tmpfs
networks:
ceph-net-tst:
ipam:
driver: default
config:
- subnet: 192.168.55.0/24