-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
48 lines (44 loc) · 1.03 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
services:
mongodb:
image: mongo:6.0
container_name: utracker-mongodb
restart: always
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=password
backend:
build:
context: .
dockerfile: Dockerfile.fixed
target: backend
container_name: utracker-backend
restart: always
ports:
- "8001:8001"
- "8002:8002/udp" # UDP port for UDP tracker
depends_on:
- mongodb
environment:
- MONGO_URL=mongodb://mongodb:27017
- DB_NAME=tracker_db
- CORS_ORIGINS=http://localhost:3000,http://localhost:80,http://localhost
frontend:
build:
context: .
dockerfile: Dockerfile
target: frontend
container_name: utracker-frontend
restart: always
ports:
- "80:80"
depends_on:
- backend
environment:
- REACT_APP_BACKEND_URL=http://localhost:8001
- REACT_APP_DOCKER_ENV=true
volumes:
mongodb_data: