From bc9f0b3d54428eb2810de8d4bdfb1226ed6988ac Mon Sep 17 00:00:00 2001
From: Hoai Viet Nguyen <viet.nguyen@th-koeln.de>
Date: Mon, 10 Mar 2025 23:15:08 +0100
Subject: [PATCH] create volumes documentRoot for nginx and ftp
---
docker-compose.yml | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
diff --git a/docker-compose.yml b/docker-compose.yml
index ad2424c..e078e99 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,16 +1,25 @@
-#Auflistung aller Dienste
+volumes:
+ documentRoot:
services:
caddy:
build: ./caddy
ports:
- 9001:80
- #Dienstname bzw. Hostname innerhalb des Netzwerks
nginx:
- #Pfad zum Dockerfile für diesen Container
build: ./nginx
- #Port-Mapping von außen nach innen
+ volumes:
+ - documentRoot:/usr/share/nginx/html
apache:
- #Basis-Image
image: httpd:2.4
todolist:
- build: ./todolist_spring
\ No newline at end of file
+ build: ./todolist_spring
+ ftp:
+ image: garethflowers/ftp-server
+ ports:
+ - 21:21
+ - 40000-40009:40000-40009
+ environment:
+ - FTP_USER=viet
+ - FTP_PASS=V9ldUF5XOj2k
+ volumes:
+ - documentRoot:/home/viet
\ No newline at end of file
--
GitLab