Skip to content

Commit 72a1f65

Browse files
committed
using environment variables for platform and external
1 parent 898bcd2 commit 72a1f65

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

docker-compose.previewers.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ services:
22

33
geoserver:
44
image: docker.osgeo.org/geoserver:2.23.0
5+
platform: ${DOCKER_PLATFORM:-}
56
environment:
67
JAVA_OPTS: -Xmx1536M -XX:MaxPermSize=756M
78
CORS_ENABLED: true
@@ -23,6 +24,7 @@ services:
2324
## THIS IS INTENDED FOR LOCAL DEVELOPMENT ONLY.
2425
geotiff-preview:
2526
image: clowder/extractors-geotiff-preview
27+
platform: ${DOCKER_PLATFORM:-}
2628
environment:
2729
GEOSERVER_URL: http://geoserver:8080/geoserver/
2830
EXTERNAL_GEOSERVER_URL: http://localhost:8085/geoserver/
@@ -37,6 +39,7 @@ services:
3739

3840
networks:
3941
clowder2:
42+
external: ${EXTERNAL:-}
4043

4144
## By default this config uses default local driver,
4245
## For custom volumes replace with volume driver configuration.

example.env

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# .env
2+
# Leave empty for auto-detection, or force a specific platform
3+
# DOCKER_PLATFORM=linux/amd64
4+
# DOCKER_PLATFORM=linux/arm64
5+
DOCKER_PLATFORM=linux/amd64
6+
EXTERNAL=true

0 commit comments

Comments
 (0)