This commit is contained in:
nutzer26
2022-12-13 15:14:20 +01:00
parent 429971c44a
commit a037410306
6 changed files with 79 additions and 0 deletions

0
dive_check_dockerfile Normal file
View File

19
docker_compose_notizen Normal file
View File

@@ -0,0 +1,19 @@
Mit den Parameter
<code>
volume:
nocopy: true
</code>
werden nicht die Inhalte kopiert.
Wichtige einstellung für die Netzwerkadapter !!
<code>
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: "192.169.0.0/24"
gateway: "192.169.0.1"
</code>

24
maven/Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
# First stage: complete build environment
FROM maven:3.8.4-eclipse-temurin-11-alpine AS builder
# add pom.xml
COPY pom.xml .
RUN mvn -B dependency:go-offline
# add later source code
ADD ./src src/
# package jar
RUN mvn -B package
# Second stage: minimal runtime environment
FROM eclipse-temurin:11-jre-alpine
# copy jar from the first stage
COPY --from=builder target/demo-1.0-SNAPSHOT.jar demo-1.0-SNAPSHOT.jar
EXPOSE 8080
CMD ["java", "-jar", "demo-1.0-SNAPSHOT.jar"]

13
mysql/docker-compose.yml Normal file
View File

@@ -0,0 +1,13 @@
version: "3.7"
services:
db:
image: mysql:8.0.19
restart: always
environment:
- MYSQL_DATABASE=example
- MYSQL_ROOT_PASSWORD=üassword
web:
build: web
restart: always
ports:
- 8081:80

3
mysql/web/Dockerfile Normal file
View File

@@ -0,0 +1,3 @@
FROM debian:10
RUN apt-get update && apt-get install -y apache2
CMD [ "/usr/sbin/apachectl", "-D", "FOREGROUND", "-k", "start"]

20
nginx/docker-compose.yml Normal file
View File

@@ -0,0 +1,20 @@
version: "3.7"
services:
nginx:
image: nginx:1.19.3
ports:
- 80
volumes:
- /etc/nginx/conf.d
- /var/cache/nginx
- /run
read_only: true
 
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: "192.169.0.0/24"
gateway: "192.169.0.1"