-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
94 lines (89 loc) · 2.49 KB
/
docker-compose.yml
File metadata and controls
94 lines (89 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: '3.3'
services:
duui-backend:
build:
context: ./DUUIRestService
dockerfile: Dockerfile # or Dockerfile-rest-service, if that's the file name
container_name: duui-gateway-backend
volumes:
# Mount the Docker socket so the backend can start containers
- /var/run/docker.sock:/var/run/docker.sock
- ./DUUIRestService/files:/app/drives
environment:
- PORT=2605
- HOST=duui-gateway-backend
- LOCAL_DRIVE_ROOT=/app/drives
- MONGO_USER=db_user
- MONGO_PASSWORD=db_password
- MONGO_HOST=duui-gateway-database
- MONGO_DB=duui
- MONGO_PORT=27017
- DBX_APP_KEY=
- DBX_APP_SECRET=
- DBX_REDIRECT_URL=http://duui-gateway-frontend:5173/account/dropbox
- GOOGLE_CLIENT_ID=
- GOOGLE_CLIENT_SECRET=
- GOOGLE_REDIRECT_URI=http://duui-gateway-frontend:5173/account/google
- SMTP_HOST=duui-gateway-smtp
- SMTP_PORT=1025
- SMTP_USER=
- SMTP_PASSWORD=
- MAIL_FROM_EMAIL=help@duui.de
- USE_SMTP_DEBUG=true
ports:
- "8085:2605"
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- mongodb
- smptp-server
networks:
- app-network
duui-frontend:
build:
context: ./DUUIWeb
dockerfile: Dockerfile # or Dockerfile-frontend, etc.
args:
API_URL: http://duui-gateway-backend:2605
DBX_URL: https://www.dropbox.com/home/Apps/DUUI
PUBLIC_VERIFICATION_REQUIRED: 'true'
container_name: duui-gateway-frontend
ports:
- "5173:5173"
depends_on:
- duui-backend
- smptp-server
environment:
- ORIGIN=http://duui-gateway-frontend:5173
- API_URL=http://duui-gateway-backend:2605
- PORT=5173
- DBX_URL='https://www.dropbox.com/home/Apps/DUUI'
- PUBLIC_VERIFICATION_REQUIRED=true
networks:
- app-network
smptp-server:
image: mailhog/mailhog
container_name: duui-gateway-smtp
ports:
- "1025:1025"
- "8025:8025"
networks:
- app-network
mongodb:
image: mongo:4.4.29
restart: always
container_name: duui-gateway-database
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: test
MONGO_INITDB_DATABASE: duui
ports:
- "27017:27017"
volumes:
- ./mongodb_data:/data/db
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
networks:
- app-network
networks:
app-network:
driver: bridge