Fixed timezone (#193)

Co-authored-by: Adam Bem <adam.bem@zoho.eu>
Reviewed-on: #193
Reviewed-by: Mikolaj Widla <widlam@noreply.example.com>
This commit is contained in:
2023-05-19 13:09:01 +02:00
parent 369256baf2
commit d231a7476b
2 changed files with 7 additions and 18 deletions

View File

@@ -1,5 +1,8 @@
FROM nginx:stable-alpine FROM nginx:stable-alpine
RUN apk add --no-cache tzdata
ENV TZ Europe/Warsaw
COPY ./tools/ /usr/share/nginx/html/tools/ COPY ./tools/ /usr/share/nginx/html/tools/
COPY ./lawful/ /usr/share/nginx/html/lawful/ COPY ./lawful/ /usr/share/nginx/html/lawful/
COPY ./assets/ /usr/share/nginx/html/assets/ COPY ./assets/ /usr/share/nginx/html/assets/

View File

@@ -4,36 +4,27 @@ services:
redis: redis:
image: 'redis' image: 'redis'
restart: "no" restart: "no"
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
xmltools-frontend: xmltools-frontend:
build: ./Frontend build: ./Frontend
container_name: xmltools-frontend container_name: xmltools-frontend
image: xmltools-frontend image: xmltools-frontend
ports: ports:
- 8086:80 - 8086:80
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
xmltools-backend: xmltools-backend:
build: ./Backend/tools-services build: ./Backend/tools-services
container_name: xmltools-backend container_name: xmltools-backend
image: xmltools-backend image: xmltools-backend
ports: ports:
- 8081:8081 - 8081:8081
xmltools-libxml-backend: xmltools-libxml-backend:
build: ./Backend-libXML build: ./Backend-libXML
container_name: xmltools-libxml-backend container_name: xmltools-libxml-backend
image: xmltools-libxml-backend image: xmltools-libxml-backend
ports: ports:
- 8082:80 - 8082:80
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
xmltools-mocked-services: xmltools-mocked-services:
build: build:
@@ -47,9 +38,7 @@ services:
- redis - redis
environment: environment:
SPRING_PROFILES_ACTIVE: DEV SPRING_PROFILES_ACTIVE: DEV
volumes: TZ: Europe/Warsaw
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
swagger: swagger:
image: "swaggerapi/swagger-ui:latest" image: "swaggerapi/swagger-ui:latest"
@@ -75,9 +64,6 @@ services:
command: command:
- "-e" - "-e"
- "--strict.perms=false" - "--strict.perms=false"
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks: networks:
default: default: