-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
80 lines (72 loc) · 1.46 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
version: "2.3"
x-cache-build: &cb
context: ${PWD-./}
dockerfile: envs/tests/units/Dockerfile.base
cache_from:
- gemtestbase:2.6
- gorynich-tests:2.6
- gemtestbase:3.0
- gorynich-tests:3.0
x-build: &build
context: ${PWD-./}
dockerfile: envs/tests/units/Dockerfile
services:
db:
image: postgres:10-alpine
restart: 'no'
stop_grace_period: 2s
tmpfs:
- /tmp:size=100m
- /var/lib/postgresql/data
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
networks:
- bus
gemtestbase-2.6:
build:
<<: *cb
args:
BASE_IMAGE: ruby:2.6-alpine
BUILDKIT_INLINE_CACHE: 1
image: gemtestbase:2.6
working_dir: /home/app
networks:
- bus
test-2.6:
build:
<<: *build
args:
BUILD_TAG: 2.6
GEM_STORAGE_AUTH: ${NEXUS_AUTH-unknown}
depends_on:
- db
- gemtestbase-2.6
image: gorynich-tests:2.6
working_dir: /home/app
networks:
- bus
gemtestbase-3.0:
build:
<<: *cb
args:
BASE_IMAGE: ruby:3.0-alpine
BUILDKIT_INLINE_CACHE: 1
image: gemtestbase:3.0
working_dir: /home/app
networks:
- bus
test-3.0:
build:
<<: *build
args:
BUILD_TAG: 3.0
GEM_STORAGE_AUTH: ${NEXUS_AUTH-unknown}
depends_on:
- db
- gemtestbase-3.0
image: gorynich-tests:3.0
working_dir: /home/app
networks:
- bus
networks:
bus: