Skip to content

Commit

Permalink
#83: Restructuring of files in project root
Browse files Browse the repository at this point in the history
  • Loading branch information
Blagoja95 committed Feb 8, 2024
1 parent 72019b7 commit 7363215
Show file tree
Hide file tree
Showing 69 changed files with 10 additions and 10 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
- SPRING_DATASOURCE_PASSWORD=${SPRING_DB_PASSWORD}

frontend-production:
container_name: dashNet-react-fe-pro
container_name: dashNet-web-production
build:
context: .
dockerfile: docker/React.Production.Dockerfile
Expand All @@ -40,7 +40,7 @@ services:
- 'production'

frontend-development:
container_name: dashNet-react-fe
container_name: dashNet-web-development
profiles:
- 'react'
- 'no-admin'
Expand Down Expand Up @@ -95,7 +95,7 @@ services:

phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: php_my_admin
container_name: dashNet-php-my-admin
profiles:
- 'phpadmin'
- 'mysql-admin'
Expand Down
2 changes: 1 addition & 1 deletion docker/MySql.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ FROM mysql:latest

LABEL maintainer="Boris Blagojević <[email protected]>"

COPY ./src/main/db/script /docker-entrypoint-initdb.d/
COPY ./db/script /docker-entrypoint-initdb.d/
4 changes: 2 additions & 2 deletions docker/React.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ LABEL maintainer="Boris Blagojević <[email protected]>"

WORKDIR /app

COPY ./src/main/ui/package*.json .
COPY ./app/web/package*.json .

RUN npm install

COPY ./src/main/ui .
COPY ./app/web .

CMD npm start
8 changes: 4 additions & 4 deletions docker/Spring.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ FROM eclipse-temurin:17-jdk-alpine

LABEL maintainer="Boris Blagojević <[email protected]>"

COPY .mvn/ .mvn
COPY mvnw mvnw.cmd pom.xml ./
COPY ./service/.mvn/ .mvn
COPY ./service/mvnw ./service/mvnw.cmd ./service/pom.xml ./

RUN dos2unix mvnw && chmod +x mvnw

RUN ./mvnw dependency:resolve

COPY src/main/java ./src/main/java
COPY src/main/resources ./src/main/resources
COPY ./service/src/main/java ./src/main/java
COPY ./service/src/main/resources ./src/main/resources

CMD ["./mvnw", "spring-boot:run"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
0 mvnw → service/mvnw
100755 → 100644
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7363215

Please sign in to comment.