forked from kartoza/docker-postgis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.build.yml
33 lines (31 loc) · 983 Bytes
/
docker-compose.build.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
# Used solely for docker-compose build
version: '3.9'
services:
postgis-base:
image: kartoza/postgis:base-${DISTRO}-${IMAGE_VERSION}-${IMAGE_VARIANT}
build:
context: .
# Use yaml anchor for reusability
args: &build-args-anchor
DISTRO: ${DISTRO}
IMAGE_VERSION: ${IMAGE_VERSION}
IMAGE_VARIANT: ${IMAGE_VARIANT}
GENERATE_ALL_LOCALE: ${GENERATE_ALL_LOCALE}
POSTGRES_MAJOR_VERSION: ${POSTGRES_MAJOR_VERSION}
POSTGIS_MAJOR_VERSION: ${POSTGIS_MAJOR_VERSION}
POSTGIS_MINOR_RELEASE: ${POSTGIS_MINOR_RELEASE}
target: postgis-base
postgis-prod:
image: kartoza/postgis:${POSTGRES_MAJOR_VERSION}-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_RELEASE}
build:
context: .
args:
<<: *build-args-anchor
target: postgis-prod
postgis-test:
image: kartoza/postgis:manual-build
build:
context: .
args:
<<: *build-args-anchor
target: postgis-test