Merge pull request #5489 from FinnStutzenstein/includeMediaService
WIP: Adding media service
This commit is contained in:
commit
c9223329cc
4
.gitmodules
vendored
4
.gitmodules
vendored
@ -17,3 +17,7 @@
|
|||||||
path = openslides-auth-service
|
path = openslides-auth-service
|
||||||
url = git@github.com:OpenSlides/openslides-auth-service.git
|
url = git@github.com:OpenSlides/openslides-auth-service.git
|
||||||
branch = master
|
branch = master
|
||||||
|
[submodule "openslides-media-service"]
|
||||||
|
path = openslides-media-service
|
||||||
|
url = git@github.com:OpenSlides/openslides-media-service.git
|
||||||
|
branch = openslides4-dev
|
||||||
|
@ -32,6 +32,10 @@ services:
|
|||||||
image: openslides-auth-dev
|
image: openslides-auth-dev
|
||||||
volumes:
|
volumes:
|
||||||
- ./openslides-auth-service/auth/src:/app/src
|
- ./openslides-auth-service/auth/src:/app/src
|
||||||
|
media:
|
||||||
|
image: openslides-media-dev
|
||||||
|
volumes:
|
||||||
|
- ./openslides-media-service/src:/app/src
|
||||||
haproxy:
|
haproxy:
|
||||||
image: openslides-haproxy-dev
|
image: openslides-haproxy-dev
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -11,7 +11,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
- datastore-reader
|
- datastore-reader
|
||||||
- datastore-postgresql
|
- postgres
|
||||||
|
|
||||||
datastore-writer:
|
datastore-writer:
|
||||||
build:
|
build:
|
||||||
@ -23,12 +23,12 @@ services:
|
|||||||
image: openslides-datastore-writer
|
image: openslides-datastore-writer
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
- datastore-postgresql
|
- postgres
|
||||||
- message-bus
|
- message-bus
|
||||||
|
|
||||||
datastore-postgresql:
|
postgres:
|
||||||
networks:
|
networks:
|
||||||
- datastore-postgresql
|
- postgres
|
||||||
|
|
||||||
client:
|
client:
|
||||||
build:
|
build:
|
||||||
@ -67,6 +67,14 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- message-bus
|
- message-bus
|
||||||
|
|
||||||
|
media:
|
||||||
|
# TODO: build
|
||||||
|
image: openslides-media
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
- backend
|
||||||
|
- postgres
|
||||||
|
|
||||||
haproxy:
|
haproxy:
|
||||||
build: ./haproxy
|
build: ./haproxy
|
||||||
image: openslides-haproxy
|
image: openslides-haproxy
|
||||||
@ -75,14 +83,14 @@ services:
|
|||||||
- frontend
|
- frontend
|
||||||
|
|
||||||
# Setup: host <-uplink-> haproxy <-frontend-> services that are reachable from the client <-backend-> services that are internal-only
|
# Setup: host <-uplink-> haproxy <-frontend-> services that are reachable from the client <-backend-> services that are internal-only
|
||||||
# There are special networks for some services only, e.g. datastore-postgresql only for the postgresql, datastore reader and datastore writer
|
# There are special networks for some services only, e.g. postgres only for the postgresql, datastore reader and datastore writer
|
||||||
networks:
|
networks:
|
||||||
uplink:
|
uplink:
|
||||||
frontend:
|
frontend:
|
||||||
internal: true
|
internal: true
|
||||||
backend:
|
backend:
|
||||||
internal: true
|
internal: true
|
||||||
datastore-postgresql:
|
postgres:
|
||||||
internal: true
|
internal: true
|
||||||
datastore-reader:
|
datastore-reader:
|
||||||
internal: true
|
internal: true
|
||||||
|
@ -3,21 +3,15 @@ services:
|
|||||||
# DATASTORE SECTION
|
# DATASTORE SECTION
|
||||||
datastore-reader:
|
datastore-reader:
|
||||||
depends_on:
|
depends_on:
|
||||||
- datastore-postgresql
|
- postgres
|
||||||
env_file: services.env
|
env_file: services.env
|
||||||
environment:
|
environment:
|
||||||
- NUM_WORKERS=8
|
- NUM_WORKERS=8
|
||||||
datastore-writer:
|
datastore-writer:
|
||||||
depends_on:
|
depends_on:
|
||||||
- datastore-postgresql
|
- postgres
|
||||||
- message-bus
|
- message-bus
|
||||||
env_file: services.env
|
env_file: services.env
|
||||||
datastore-postgresql:
|
|
||||||
image: postgres:11
|
|
||||||
environment:
|
|
||||||
- POSTGRES_USER=openslides
|
|
||||||
- POSTGRES_PASSWORD=openslides
|
|
||||||
- POSTGRES_DB=openslides
|
|
||||||
|
|
||||||
# CLIENT
|
# CLIENT
|
||||||
client:
|
client:
|
||||||
@ -48,6 +42,21 @@ services:
|
|||||||
cache:
|
cache:
|
||||||
image: redis:latest
|
image: redis:latest
|
||||||
|
|
||||||
|
# MEDIA
|
||||||
|
media:
|
||||||
|
depends_on:
|
||||||
|
- backend
|
||||||
|
- postgres
|
||||||
|
env_file: services.env
|
||||||
|
|
||||||
|
# PERSISTENCE
|
||||||
|
postgres:
|
||||||
|
image: postgres:11
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=openslides
|
||||||
|
- POSTGRES_PASSWORD=openslides
|
||||||
|
- POSTGRES_DB=openslides
|
||||||
|
|
||||||
# SHARED
|
# SHARED
|
||||||
message-bus:
|
message-bus:
|
||||||
image: redis:latest
|
image: redis:latest
|
||||||
|
@ -30,6 +30,9 @@ frontend https
|
|||||||
acl auth path_beg -i /system/auth
|
acl auth path_beg -i /system/auth
|
||||||
use_backend backend_auth if auth
|
use_backend backend_auth if auth
|
||||||
|
|
||||||
|
acl media path_beg -i /system/media
|
||||||
|
use_backend backend_media if media
|
||||||
|
|
||||||
stats enable
|
stats enable
|
||||||
stats uri /stats
|
stats uri /stats
|
||||||
stats refresh 10s
|
stats refresh 10s
|
||||||
@ -54,3 +57,7 @@ backend backend_autoupdate
|
|||||||
backend backend_auth
|
backend backend_auth
|
||||||
mode http
|
mode http
|
||||||
server auth auth:9004 resolvers docker_resolver check
|
server auth auth:9004 resolvers docker_resolver check
|
||||||
|
|
||||||
|
backend backend_media
|
||||||
|
mode http
|
||||||
|
server media media:9006 resolvers docker_resolver check
|
||||||
|
1
openslides-media-service
Submodule
1
openslides-media-service
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 400d8699e6569e26e2e64dfd3215bbc02c3622f0
|
@ -5,8 +5,7 @@ DATASTORE_READER_HOST=datastore-reader
|
|||||||
DATASTORE_READER_PORT=9010
|
DATASTORE_READER_PORT=9010
|
||||||
DATASTORE_WRITER_HOST=datastore-writer
|
DATASTORE_WRITER_HOST=datastore-writer
|
||||||
DATASTORE_WRITER_PORT=9011
|
DATASTORE_WRITER_PORT=9011
|
||||||
|
DATASTORE_DATABASE_HOST=postgres
|
||||||
DATASTORE_DATABASE_HOST=datastore-postgresql
|
|
||||||
|
|
||||||
ACTION_HOST=backend
|
ACTION_HOST=backend
|
||||||
ACTION_PORT=9002
|
ACTION_PORT=9002
|
||||||
@ -17,3 +16,8 @@ AUTH_HOST=auth
|
|||||||
AUTH_PORT=9004
|
AUTH_PORT=9004
|
||||||
CACHE_HOST=cache
|
CACHE_HOST=cache
|
||||||
CACHE_PORT=6379
|
CACHE_PORT=6379
|
||||||
|
|
||||||
|
MEDIA_HOST=media
|
||||||
|
MEDIA_PORT=9006
|
||||||
|
MEDIA_DATABASE_HOST=postgres
|
||||||
|
MEDIA_DATABASE_NAME=openslides
|
||||||
|
Loading…
Reference in New Issue
Block a user