-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
80 lines (74 loc) · 1.62 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#
# use 'docker compose up' to start, not 'docker-compose up'
#
name: apt-buildrepo
services:
packages:
build:
dockerfile: test/packages/Dockerfile
volumes:
- ./test:/data
stop_grace_period: 1s
server:
depends_on:
packages:
condition: service_completed_successfully
build:
dockerfile: test/server/Dockerfile
volumes:
- ./test:/data
ports:
- 8888:80
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost/"]
start_period: 5s
retries: 20
interval: 2s
timeout: 10s
stop_grace_period: 1s
client-debian-12:
depends_on:
server:
condition: service_healthy
build:
dockerfile: test/client/Dockerfile
args:
from: debian:12
volumes:
- ./test:/data
client-debian-11:
depends_on:
server:
condition: service_healthy
client-debian-12:
condition: service_completed_successfully
build:
dockerfile: test/client/Dockerfile
args:
from: debian:11
volumes:
- ./test:/data
client-debian-10:
depends_on:
server:
condition: service_healthy
client-debian-11:
condition: service_completed_successfully
build:
dockerfile: test/client/Dockerfile
args:
from: debian:10
volumes:
- ./test:/data
client-debian-9:
depends_on:
server:
condition: service_healthy
client-debian-10:
condition: service_completed_successfully
build:
dockerfile: test/client/Dockerfile
args:
from: debian:9
volumes:
- ./test:/data