[docker] fix timezone in container and added docker-compose file
This commit is contained in:
parent
90a4e70fe0
commit
72d26191fa
33
docker-compose.yml
Normal file
33
docker-compose.yml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
oeffisearch-client:
|
||||||
|
build:
|
||||||
|
context: ./
|
||||||
|
dockerfile: ./docker/Dockerfile.nginx
|
||||||
|
image: oeffisearch-client
|
||||||
|
container_name: oeffisearch-client
|
||||||
|
user: "1000:1000"
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- oeffisearch
|
||||||
|
depends_on:
|
||||||
|
- oeffisearch
|
||||||
|
ports:
|
||||||
|
- "8081:8080"
|
||||||
|
|
||||||
|
oeffisearch:
|
||||||
|
build:
|
||||||
|
context: ./
|
||||||
|
dockerfile: ./docker/Dockerfile.oeffisearch
|
||||||
|
image: oeffisearch
|
||||||
|
container_name: oeffisearch
|
||||||
|
user: "1000:1000"
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ./data:/data
|
||||||
|
networks:
|
||||||
|
- oeffisearch
|
||||||
|
|
||||||
|
networks:
|
||||||
|
oeffisearch:
|
||||||
|
driver: bridge
|
|
@ -8,15 +8,18 @@ WORKDIR /app
|
||||||
ENV LIBRESSLVER=3.0.2
|
ENV LIBRESSLVER=3.0.2
|
||||||
|
|
||||||
RUN apk upgrade --update && \
|
RUN apk upgrade --update && \
|
||||||
apk add --no-cache --no-progress openssl-dev pcre-dev file make && \
|
apk add --no-cache --no-progress openssl-dev pcre-dev file make tzdata && \
|
||||||
nim installLibreSsl
|
nim installLibreSsl && \
|
||||||
|
ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime
|
||||||
|
|
||||||
RUN nim musl -d:release -d:libressl oeffisearch.nim
|
RUN nim musl -d:release -d:libressl oeffisearch.nim
|
||||||
|
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
||||||
COPY --from=build /app/oeffisearch /oeffisearch
|
COPY --from=build /app/oeffisearch /oeffisearch
|
||||||
|
COPY --from=build /usr/share/zoneinfo /usr/share/zoneinfo
|
||||||
|
COPY --from=build /etc/localtime /etc/localtime
|
||||||
|
|
||||||
VOLUME ["/data"]
|
VOLUME ["/data"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue