-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 932 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (42 loc) · 932 Bytes
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
version: "3.9"
services:
watchdog_front:
container_name: watchdog_front
build: ./frontend
environment:
- REACT_APP_API_PATH=<ADDRESS>:3000
ports:
- 3001:3000
networks:
- watchdog-network
watchdog_api:
container_name: watchdog_api
build: ./backend
ports:
- 3000:3000
volumes:
- ./backend/files:/app/files
environment:
- DATABASE_HOST=mongodb
- JWT_SECRET=<LONG RANDOM STRING>
- JWT_EXPIRES_IN=30d
- PORT=3000
- APP_URL=<ADDRESS>:3000
- FILES_PATH=./files
# Account with this name will receive admin rights
- ADMIN_USERNAME=admin
restart: always
networks:
- watchdog-network
depends_on:
- mongodb
mongodb:
container_name: mongodb
image: mongo:latest
volumes:
- ./data:/data/db
networks:
- watchdog-network
networks:
watchdog-network:
driver: bridge