-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
41 lines (36 loc) · 1009 Bytes
/
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
version: "2.3"
services:
builder:
build:
context: .
args:
BUILDKIT_INLINE_CACHE: 1
BASE_IMG: ${BASE_IMG-library/ruby}
BASE_TAG: ${BASE_TAG-3-alpine}
cache_from:
- ${BASE_IMG-library/ruby}:latest
- ${BASE_IMG-library/ruby}:${COMMIT_SHA-latest}
- ${BASE_IMG-library/ruby}:${BRANCH_TAG-latest}
- ${BASE_IMG-library/ruby}:${TAG-builder}
- ${IMAGE-rnds/gorynich}:latest
- ${IMAGE-rnds/gorynich}:builder
- ${IMAGE-rnds/gorynich}:${COMMIT_SHA-latest}
- ${IMAGE-rnds/gorynich}:${BRANCH_TAG-latest}
- ${IMAGE-rnds/gorynich}:${TAG-builder}
image: ${IMAGE-rnds/gorynich}:${TAG-builder}
working_dir: /home/app
networks:
- bus
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
networks:
bus: