@@ -9,8 +9,7 @@ services:
99 volumes :
1010 # Mount the Docker socket so the backend can start containers
1111 - /var/run/docker.sock:/var/run/docker.sock
12- # - /:/app/drives
13- - /home/:/app/drives
12+ - /:/app/drives
1413 environment :
1514 - PORT=2605
1615 - HOST=duui-gateway-backend
@@ -32,22 +31,29 @@ services:
3231 - " host.docker.internal:host-gateway"
3332 depends_on :
3433 - mongodb
34+ networks :
35+ - app-network
3536
3637
37- # duui-frontend:
38- # build:
39- # context: ./DUUIWeb
40- # dockerfile: Dockerfile # or Dockerfile-frontend, etc.
41- # container_name: duui-gateway-frontend
42- # ports:
43- # - "5173:5173"
44- # depends_on:
45- # - duui-backend
46- # environment:
47- # - ORIGIN=http://duui-gateway-frontend:5173
48- # - API_URL=http://duui-gateway-backend:2605
49- # - PORT=5173
50- # - DBX_URL='https://www.dropbox.com/home/Apps/DUUI'
38+ duui-frontend :
39+ build :
40+ context : ./DUUIWeb
41+ dockerfile : Dockerfile # or Dockerfile-frontend, etc.
42+ args :
43+ API_URL : http://duui-gateway-backend:2605
44+ DBX_URL : https://www.dropbox.com/home/Apps/DUUI
45+ container_name : duui-gateway-frontend
46+ ports :
47+ - " 5173:5173"
48+ depends_on :
49+ - duui-backend
50+ environment :
51+ - ORIGIN=http://duui-gateway-frontend:5173
52+ - API_URL=http://duui-gateway-backend:2605
53+ - PORT=5173
54+ - DBX_URL='https://www.dropbox.com/home/Apps/DUUI'
55+ networks :
56+ - app-network
5157
5258
5359 mongodb :
@@ -62,4 +68,10 @@ services:
6268 - " 27017:27017"
6369 volumes :
6470 - ./mongodb_data:/data/db
65- - ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
71+ - ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
72+ networks :
73+ - app-network
74+
75+ networks :
76+ app-network :
77+ driver : bridge
0 commit comments