Docker: Rename proxy-related variables
HAProxy was replaced by Caddy, so obviously variables should not longer carry HAPROXY in their names to avoid confusion. To hopefully make future changes less likely to break configurations, we'll keep variable and image names generic (proxy instead of caddy).
This commit is contained in:
parent
67202a4a4b
commit
a1e65e8a47
@ -17,8 +17,8 @@ DEFAULT_DOCKER_REGISTRY=
|
|||||||
|
|
||||||
# Docker Images
|
# Docker Images
|
||||||
# -------------
|
# -------------
|
||||||
DOCKER_OPENSLIDES_HAPROXY_NAME=
|
DOCKER_OPENSLIDES_PROXY_NAME=
|
||||||
DOCKER_OPENSLIDES_HAPROXY_TAG=
|
DOCKER_OPENSLIDES_PROXY_TAG=
|
||||||
DOCKER_OPENSLIDES_BACKEND_NAME=
|
DOCKER_OPENSLIDES_BACKEND_NAME=
|
||||||
DOCKER_OPENSLIDES_BACKEND_TAG=
|
DOCKER_OPENSLIDES_BACKEND_TAG=
|
||||||
DOCKER_OPENSLIDES_FRONTEND_NAME=
|
DOCKER_OPENSLIDES_FRONTEND_NAME=
|
||||||
|
@ -6,7 +6,7 @@ declare -A TARGETS
|
|||||||
TARGETS=(
|
TARGETS=(
|
||||||
[client]="$(dirname "${BASH_SOURCE[0]}")/../client/docker/"
|
[client]="$(dirname "${BASH_SOURCE[0]}")/../client/docker/"
|
||||||
[server]="$(dirname "${BASH_SOURCE[0]}")/../server/docker/"
|
[server]="$(dirname "${BASH_SOURCE[0]}")/../server/docker/"
|
||||||
[caddy]="$(dirname "${BASH_SOURCE[0]}")/../caddy/"
|
[proxy]="$(dirname "${BASH_SOURCE[0]}")/../caddy/"
|
||||||
[autoupdate]="$(dirname "${BASH_SOURCE[0]}")/../autoupdate/"
|
[autoupdate]="$(dirname "${BASH_SOURCE[0]}")/../autoupdate/"
|
||||||
[media]="https://github.com/OpenSlides/openslides-media-service.git"
|
[media]="https://github.com/OpenSlides/openslides-media-service.git"
|
||||||
[pgbouncer]="https://github.com/OpenSlides/openslides-docker-compose.git#:pgbouncer"
|
[pgbouncer]="https://github.com/OpenSlides/openslides-docker-compose.git#:pgbouncer"
|
||||||
|
@ -45,7 +45,7 @@ services:
|
|||||||
redis:
|
redis:
|
||||||
image: redis:latest
|
image: redis:latest
|
||||||
|
|
||||||
caddy:
|
proxy:
|
||||||
image: caddy:2.3.0-alpine
|
image: caddy:2.3.0-alpine
|
||||||
volumes:
|
volumes:
|
||||||
- ../caddy/Caddyfile.dev:/etc/caddy/Caddyfile
|
- ../caddy/Caddyfile.dev:/etc/caddy/Caddyfile
|
||||||
|
@ -13,10 +13,10 @@ define(`read_env', `esyscmd(`printf "\`%s'" "$$1"')')
|
|||||||
dnl return env variable if set; otherwise, return given alternative value
|
dnl return env variable if set; otherwise, return given alternative value
|
||||||
define(`ifenvelse', `ifelse(read_env(`$1'),, `$2', read_env(`$1'))')
|
define(`ifenvelse', `ifelse(read_env(`$1'),, `$2', read_env(`$1'))')
|
||||||
|
|
||||||
define(`HAPROXY_IMAGE',
|
define(`PROXY_IMAGE',
|
||||||
ifenvelse(`DEFAULT_DOCKER_REGISTRY', openslides)/dnl
|
ifenvelse(`DEFAULT_DOCKER_REGISTRY', openslides)/dnl
|
||||||
ifenvelse(`DOCKER_OPENSLIDES_HAPROXY_NAME', openslides-caddy):dnl
|
ifenvelse(`DOCKER_OPENSLIDES_PROXY_NAME', openslides-proxy):dnl
|
||||||
ifenvelse(`DOCKER_OPENSLIDES_HAPROXY_TAG', latest))
|
ifenvelse(`DOCKER_OPENSLIDES_PROXY_TAG', latest))
|
||||||
define(`BACKEND_IMAGE',
|
define(`BACKEND_IMAGE',
|
||||||
ifenvelse(`DEFAULT_DOCKER_REGISTRY', openslides)/dnl
|
ifenvelse(`DEFAULT_DOCKER_REGISTRY', openslides)/dnl
|
||||||
ifenvelse(`DOCKER_OPENSLIDES_BACKEND_NAME', openslides-server):dnl
|
ifenvelse(`DOCKER_OPENSLIDES_BACKEND_NAME', openslides-server):dnl
|
||||||
@ -95,8 +95,8 @@ x-pgnode-env: &default-pgnode-env
|
|||||||
REPMGR_WAL_ARCHIVE: "ifenvelse(`PGNODE_WAL_ARCHIVING', on)"
|
REPMGR_WAL_ARCHIVE: "ifenvelse(`PGNODE_WAL_ARCHIVING', on)"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
haproxy:
|
proxy:
|
||||||
image: HAPROXY_IMAGE
|
image: PROXY_IMAGE
|
||||||
depends_on:
|
depends_on:
|
||||||
- server
|
- server
|
||||||
- client
|
- client
|
||||||
|
@ -13,10 +13,10 @@ define(`read_env', `esyscmd(`printf "\`%s'" "$$1"')')
|
|||||||
dnl return env variable if set; otherwise, return given alternative value
|
dnl return env variable if set; otherwise, return given alternative value
|
||||||
define(`ifenvelse', `ifelse(read_env(`$1'),, `$2', read_env(`$1'))')
|
define(`ifenvelse', `ifelse(read_env(`$1'),, `$2', read_env(`$1'))')
|
||||||
|
|
||||||
define(`HAPROXY_IMAGE',
|
define(`PROXY_IMAGE',
|
||||||
ifenvelse(`DEFAULT_DOCKER_REGISTRY', openslides)/dnl
|
ifenvelse(`DEFAULT_DOCKER_REGISTRY', openslides)/dnl
|
||||||
ifenvelse(`DOCKER_OPENSLIDES_HAPROXY_NAME', openslides-caddy):dnl
|
ifenvelse(`DOCKER_OPENSLIDES_PROXY_NAME', openslides-proxy):dnl
|
||||||
ifenvelse(`DOCKER_OPENSLIDES_HAPROXY_TAG', latest))
|
ifenvelse(`DOCKER_OPENSLIDES_PROXY_TAG', latest))
|
||||||
define(`BACKEND_IMAGE',
|
define(`BACKEND_IMAGE',
|
||||||
ifenvelse(`DEFAULT_DOCKER_REGISTRY', openslides)/dnl
|
ifenvelse(`DEFAULT_DOCKER_REGISTRY', openslides)/dnl
|
||||||
ifenvelse(`DOCKER_OPENSLIDES_BACKEND_NAME', openslides-server):dnl
|
ifenvelse(`DOCKER_OPENSLIDES_BACKEND_NAME', openslides-server):dnl
|
||||||
@ -95,8 +95,8 @@ x-pgnode-env: &default-pgnode-env
|
|||||||
REPMGR_WAL_ARCHIVE: "ifenvelse(`PGNODE_WAL_ARCHIVING', on)"
|
REPMGR_WAL_ARCHIVE: "ifenvelse(`PGNODE_WAL_ARCHIVING', on)"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
haproxy:
|
proxy:
|
||||||
image: HAPROXY_IMAGE
|
image: PROXY_IMAGE
|
||||||
networks:
|
networks:
|
||||||
- front
|
- front
|
||||||
- back
|
- back
|
||||||
|
Loading…
Reference in New Issue
Block a user