Merge pull request #5466 from GabrielInTheWorld/add-auth-service
Adds submodule openslides-auth-service
This commit is contained in:
commit
06b520f3e6
4
.gitmodules
vendored
4
.gitmodules
vendored
@ -13,3 +13,7 @@
|
|||||||
[submodule "openslides-autoupdate-service"]
|
[submodule "openslides-autoupdate-service"]
|
||||||
path = openslides-autoupdate-service
|
path = openslides-autoupdate-service
|
||||||
url = git@github.com:OpenSlides/openslides-autoupdate-service.git
|
url = git@github.com:OpenSlides/openslides-autoupdate-service.git
|
||||||
|
[submodule "openslides-auth-service"]
|
||||||
|
path = openslides-auth-service
|
||||||
|
url = git@github.com:OpenSlides/openslides-auth-service.git
|
||||||
|
branch = master
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version: '3'
|
version: "3"
|
||||||
services:
|
services:
|
||||||
datastore-reader:
|
datastore-reader:
|
||||||
image: openslides-datastore-reader-dev
|
image: openslides-datastore-reader-dev
|
||||||
@ -28,6 +28,10 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./openslides-autoupdate-service/cmd:/root/cmd
|
- ./openslides-autoupdate-service/cmd:/root/cmd
|
||||||
- ./openslides-autoupdate-service/internal:/root/internal
|
- ./openslides-autoupdate-service/internal:/root/internal
|
||||||
|
auth:
|
||||||
|
image: openslides-auth-dev
|
||||||
|
volumes:
|
||||||
|
- ./openslides-auth-service/auth:/app/auth
|
||||||
haproxy:
|
haproxy:
|
||||||
image: openslides-haproxy-dev
|
image: openslides-haproxy-dev
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version: '3'
|
version: "3"
|
||||||
services:
|
services:
|
||||||
datastore-reader:
|
datastore-reader:
|
||||||
build:
|
build:
|
||||||
@ -10,6 +10,7 @@ services:
|
|||||||
image: openslides-datastore-reader
|
image: openslides-datastore-reader
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
- datastore-reader
|
||||||
- datastore-postgresql
|
- datastore-postgresql
|
||||||
|
|
||||||
datastore-writer:
|
datastore-writer:
|
||||||
@ -49,6 +50,19 @@ services:
|
|||||||
- backend
|
- backend
|
||||||
- message-bus
|
- message-bus
|
||||||
|
|
||||||
|
auth:
|
||||||
|
build:
|
||||||
|
context: "https://github.com/OpenSlides/openslides-auth-service.git"
|
||||||
|
args:
|
||||||
|
GIT_CHECKOUT: "${OPENSLDIES_AUTH_SERVICE_COMMIT_HASH}"
|
||||||
|
PORT: "${OPENSLDIES_AUTH_SERVICE_PORT}"
|
||||||
|
image: openslides-auth
|
||||||
|
networks:
|
||||||
|
- datastore-reader
|
||||||
|
- auth
|
||||||
|
cache:
|
||||||
|
networks:
|
||||||
|
- auth
|
||||||
message-bus:
|
message-bus:
|
||||||
networks:
|
networks:
|
||||||
- message-bus
|
- message-bus
|
||||||
@ -70,5 +84,9 @@ networks:
|
|||||||
internal: true
|
internal: true
|
||||||
datastore-postgresql:
|
datastore-postgresql:
|
||||||
internal: true
|
internal: true
|
||||||
|
datastore-reader:
|
||||||
|
internal: true
|
||||||
message-bus:
|
message-bus:
|
||||||
internal: true
|
internal: true
|
||||||
|
auth:
|
||||||
|
internal: true
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version: '3'
|
version: "3"
|
||||||
services:
|
services:
|
||||||
# DATASTORE SECTION
|
# DATASTORE SECTION
|
||||||
datastore-reader:
|
datastore-reader:
|
||||||
@ -41,6 +41,15 @@ services:
|
|||||||
- message-bus
|
- message-bus
|
||||||
env_file: services.env
|
env_file: services.env
|
||||||
|
|
||||||
|
# AUTH
|
||||||
|
auth:
|
||||||
|
depends_on:
|
||||||
|
- datastore-reader
|
||||||
|
- cache
|
||||||
|
env_file: services.env
|
||||||
|
cache:
|
||||||
|
image: redis:alpine
|
||||||
|
|
||||||
# SHARED
|
# SHARED
|
||||||
message-bus:
|
message-bus:
|
||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
|
@ -16,6 +16,9 @@ frontend http
|
|||||||
acl autoupdate path_beg -i /system/autoupdate
|
acl autoupdate path_beg -i /system/autoupdate
|
||||||
use_backend backend_autoupdate if autoupdate
|
use_backend backend_autoupdate if autoupdate
|
||||||
|
|
||||||
|
acl auth path_beg -i /system/auth
|
||||||
|
use_backend backend_auth if auth
|
||||||
|
|
||||||
stats enable
|
stats enable
|
||||||
stats uri /stats
|
stats uri /stats
|
||||||
stats refresh 10s
|
stats refresh 10s
|
||||||
@ -41,3 +44,9 @@ backend backend_autoupdate
|
|||||||
server autoupdate autoupdate:9012 resolvers docker_resolver check
|
server autoupdate autoupdate:9012 resolvers docker_resolver check
|
||||||
timeout connect 60s
|
timeout connect 60s
|
||||||
timeout server 60s
|
timeout server 60s
|
||||||
|
|
||||||
|
backend backend_auth
|
||||||
|
mode http
|
||||||
|
server auth auth:9004 resolvers docker_resolver check
|
||||||
|
timeout connect 60s
|
||||||
|
timeout server 60s
|
1
openslides-auth-service
Submodule
1
openslides-auth-service
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 7258d3f3b581d4dc57c2a25c656e5caa73dd03fc
|
@ -12,3 +12,8 @@ ACTION_HOST=backend
|
|||||||
ACTION_PORT=9002
|
ACTION_PORT=9002
|
||||||
PRESENTER_HOST=backend
|
PRESENTER_HOST=backend
|
||||||
PRESENTER_PORT=9003
|
PRESENTER_PORT=9003
|
||||||
|
|
||||||
|
AUTH_HOST=auth
|
||||||
|
AUTH_PORT=9004
|
||||||
|
CACHE_HOST=cache
|
||||||
|
CACHE_PORT=6379
|
Loading…
Reference in New Issue
Block a user