-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (63 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
72 lines (63 loc) · 1.37 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
version: '3.8'
services:
backend:
build: ./backend
container_name: taskflowr-backend
ports:
- "5000:5000"
environment:
- FLASK_ENV=development
- FLASK_DEBUG=1
- JWT_SECRET=taskflowr-super-secret-key-2024
- DATABASE_URL=sqlite:///taskflowr.db
- ADMIN_PASSWORD=admin123
- STRIPE_KEY=sk_test_fake_key_12345
- GAMESERVER_API_URL=http://YOUR_DROPLET_IP_HERE:5001
volumes:
- ./backend:/app
restart: unless-stopped
networks:
- taskflowr-net
frontend:
build: ./frontend
container_name: taskflowr-frontend
ports:
- "3000:3000"
environment:
- REACT_APP_API_URL=http://localhost:5000
volumes:
- ./frontend:/app
- /app/node_modules
depends_on:
- backend
restart: unless-stopped
networks:
- taskflowr-net
nginx:
image: nginx:1.21
container_name: taskflowr-nginx
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- backend
- frontend
restart: unless-stopped
networks:
- taskflowr-net
mongo:
image: mongo:5.0
container_name: taskflowr-mongo
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
restart: unless-stopped
networks:
- taskflowr-net
volumes:
mongo-data:
networks:
taskflowr-net:
driver: bridge