Changes to docker-compose

- changed to "no-new-privileges=true" from ":true"
- added new env vars for backend
- removed volume for frontend and backend
- bumped image version for backend to 1.5
This commit is contained in:
K
2025-08-03 21:15:47 +05:30
parent 839eee0746
commit b71c6b5c02
+22 -19
View File
@@ -8,7 +8,7 @@ services:
#- "9000:9000" # Hadoop; No need to expose since backend will access internally #- "9000:9000" # Hadoop; No need to expose since backend will access internally
user: "hdoop:hdoop" user: "hdoop:hdoop"
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges=true
networks: networks:
- skycrate-internal - skycrate-internal
volumes: volumes:
@@ -24,7 +24,7 @@ services:
restart: on-failure:5 restart: on-failure:5
user: "hdoop:hdoop" user: "hdoop:hdoop"
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges=true
networks: networks:
- skycrate-internal - skycrate-internal
volumes: volumes:
@@ -42,7 +42,7 @@ services:
restart: on-failure:10 restart: on-failure:10
user: "hdoop:hdoop" user: "hdoop:hdoop"
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges=true
networks: networks:
- skycrate-internal - skycrate-internal
environment: environment:
@@ -58,7 +58,7 @@ services:
restart: on-failure:5 restart: on-failure:5
user: "hdoop:hdoop" user: "hdoop:hdoop"
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges=true
networks: networks:
- skycrate-internal - skycrate-internal
environment: environment:
@@ -74,7 +74,7 @@ services:
restart: on-failure:5 restart: on-failure:5
user: "hdoop:hdoop" user: "hdoop:hdoop"
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges=true
networks: networks:
- skycrate-internal - skycrate-internal
environment: environment:
@@ -92,13 +92,13 @@ services:
restart: on-failure:5 restart: on-failure:5
user: "1000:1000" user: "1000:1000"
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges=true
networks: networks:
- skycrate-internal - skycrate-internal
environment: environment:
- MYSQL_DATABASE=skycrate - MYSQL_DATABASE=${DB_NAME}
- MYSQL_USER=skycrateDB - MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${MYSQL_PASSWORD} - MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_RANDOM_ROOT_PASSWORD=yes - MYSQL_RANDOM_ROOT_PASSWORD=yes
volumes: volumes:
- skycrate-db:/var/lib/mysql - skycrate-db:/var/lib/mysql
@@ -111,13 +111,11 @@ services:
restart: on-failure:5 restart: on-failure:5
user: "skycrateFront:skycrateFront" user: "skycrateFront:skycrateFront"
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges=true
networks: networks:
- skycrate-internal - skycrate-internal
ports: ports:
- "80:8080" - "80:8080"
volumes:
- skycrate-frontend:/app
depends_on: depends_on:
- backend - backend
@@ -127,23 +125,28 @@ services:
restart: on-failure:5 restart: on-failure:5
user: "skycrateBack:skycrateBack" user: "skycrateBack:skycrateBack"
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges=true
networks: networks:
- skycrate-internal - skycrate-internal
ports: ports:
- "8081:8081" # If you change, update in Frontend/.env file too and rebuild the image - "8081:8080" # If you change, update in Frontend/.env file too and rebuild the image
environment: environment:
- MYSQL_PASSWORD=${MYSQL_PASSWORD} - JWT_SECRET=${JWT_SECRET} # Eg. dO9Yl9NYJOODug8y9ciMVnVMoH44Q6mXilIlZ2LXXYY=
volumes: - DB_NAME=${DB_NAME}
- skycrate-backend:/app - DB_URI=db:3306
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- HDFS_URI=hdfs://namenode:9000
- HDFS_USER=hadoopuser
- SSL_PASSWORD=tempP@ass69 # Do not change for now. Future updates will allow you to change it.
env_file:
- .env
volumes: volumes:
skycrate-hadoop_namenode: skycrate-hadoop_namenode:
skycrate-hadoop_datanode: skycrate-hadoop_datanode:
skycrate-hadoop_historyserver: skycrate-hadoop_historyserver:
skycrate-db: skycrate-db:
skycrate-frontend:
skycrate-backend:
networks: networks:
skycrate-internal: skycrate-internal: