feat(config): 添加镜像版本环境变量配置
为 Docker 镜像添加可配置的环境变量,包括 PostGIS、Redis、MinIO 和 Nginx, 使镜像版本可以通过 .env 文件进行自定义配置。 BREAKING CHANGE: 现在需要在 .env 文件中设置镜像版本变量。
This commit is contained in:
+4
-4
@@ -2,7 +2,7 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgis/postgis:17-3.5
|
||||
image: "${POSTGRES_IMAGE}"
|
||||
container_name: ciyuan-postgres
|
||||
environment:
|
||||
POSTGRES_USER: "${POSTGRES_USER}"
|
||||
@@ -25,7 +25,7 @@ services:
|
||||
- ciyuan-net
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
image: "${REDIS_IMAGE}"
|
||||
container_name: ciyuan-redis
|
||||
expose:
|
||||
- "6379"
|
||||
@@ -41,7 +41,7 @@ services:
|
||||
- ciyuan-net
|
||||
|
||||
minio:
|
||||
image: minio/minio:latest
|
||||
image: "${MINIO_IMAGE}"
|
||||
container_name: ciyuan-minio
|
||||
command: server /data --console-address ":9001"
|
||||
environment:
|
||||
@@ -132,7 +132,7 @@ services:
|
||||
- ciyuan-net
|
||||
|
||||
nginx:
|
||||
image: nginx:1.27-alpine
|
||||
image: "${NGINX_IMAGE}"
|
||||
container_name: ciyuan-nginx
|
||||
ports:
|
||||
- "${CLIENT_WEB_PORT}:80"
|
||||
|
||||
Reference in New Issue
Block a user