Skip to content

Commit

Permalink
Merge pull request #21 from DIMSI-IS/MergeTmpOusmanePierre
Browse files Browse the repository at this point in the history
Merge tmp ousmane pierre
  • Loading branch information
JoffreyLuang authored May 31, 2024
2 parents 8dae1ff + a4cbdfa commit c0f9eec
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 43 deletions.
2 changes: 1 addition & 1 deletion common/config/core/env
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ FLOWER_PASSWORD=
### OPENID [MANDATORY] ###
OPENID_CLIENTID=backroll-api
OPENID_CLIENTSECRET=CLIENT_SECRET_TO_REPLACE
OPENID_ISSUER=http://IP_TO_REPLACE:8081/realms/backroll
OPENID_ISSUER=KEYCLOAK_IP/realms/backroll
4 changes: 2 additions & 2 deletions common/config/ui/env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### BACKROLL UI CONFIGURATION [MANDATORY] ###
API_ENDPOINT_URL=http://IP_TO_REPLACE:5050
OPENID_ISSUER=http://IP_TO_REPLACE:8081
OPENID_ISSUER=KEYCLOAK_IP
OPENID_REALM=backroll
OPENID_CLIENTID=backroll-front
OPENID_CLIENTID=backroll-front
48 changes: 8 additions & 40 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,6 @@
version: "3.9"

services:

# ## Optional if you already have a working db server
database:
image: 'mariadb:10.3'
container_name: database
networks:
- backroll-network
restart: always
ports:
- 3306:3306
volumes:
- ./mariadb/:/var/lib/mysql/
env_file:
- ./common/config/database/env

## Optional if you already have a working keycloak environment
sso:
restart: always
#image: dimsicloud/backroll:${BACKROLL_VERSION:-latest}
build: ./common/config/sso
#image: jboss/keycloak:16.1.1
networks:
- backroll-network
expose:
- 8081
- 9990
ports:
- 8081:8080
- 9990:9990
env_file:
- ./common/config/sso/env
services:

redis:
restart: always
Expand All @@ -47,7 +16,7 @@ services:

backroll_api:
restart: on-failure
build: ./src/core
image: dimsicloud/backroll:${BACKROLL_VERSION:-latest}
container_name: core
command: "python3 run.py"
networks:
Expand All @@ -65,11 +34,10 @@ services:
env_file:
- ./common/config/core/env


worker_primary:
restart: on-failure
build: ./src/core
container_name: worker
image: dimsicloud/backroll:${BACKROLL_VERSION:-latest}
command: celery -A app.celery worker -n worker -Q default --concurrency=4
volumes:
- ./common/secret/:/root/.ssh:ro
Expand All @@ -88,7 +56,7 @@ services:
worker_secondary:
restart: on-failure
container_name: worker-lrt
build: ./src/core
image: dimsicloud/backroll:${BACKROLL_VERSION:-latest}
command: celery -A app.celery worker -n worker2 -Q backup_tasks --concurrency=2
volumes:
- ./common/secret/:/root/.ssh:ro
Expand All @@ -108,7 +76,7 @@ services:
flower:
restart: on-failure
container_name: celery-flower
build: ./src/core
image: dimsicloud/backroll:${BACKROLL_VERSION:-latest}
command: celery -A app.celery flower --conf=flowerconfig.py
volumes:
- ./flower:/root/flower
Expand All @@ -129,7 +97,7 @@ services:
beat:
restart: on-failure
container_name: scheduler
build: ./src/core
image: dimsicloud/backroll:${BACKROLL_VERSION:-latest}
command: celery -A app.celery beat -S redbeat.RedBeatScheduler
volumes:
- ./src/core:/usr/src/app
Expand All @@ -144,7 +112,7 @@ services:
front:
restart: on-failure
container_name: ui
build: src/ui
image: dimsicloud/backroll-ui:${BACKROLL_VERSION:-latest}
volumes:
- ./src/ui:/app
ports:
Expand All @@ -157,4 +125,4 @@ services:
- ./common/config/ui/env

networks:
backroll-network:
backroll-network:

0 comments on commit c0f9eec

Please sign in to comment.