-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (74 loc) · 1.92 KB
/
Copy pathdocker-compose.yml
File metadata and controls
82 lines (74 loc) · 1.92 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
version: "3.8"
# Common volumes for git operations (reusable definition)
x-git-volumes: &git-volumes
- ~/.ssh/id_rsa:/root/.ssh/id_rsa:ro
- ~/.gitconfig:/root/.gitconfig:ro
services:
workspace:
build:
context: .
dockerfile: Dockerfile
container_name: thor-workspace
volumes:
- .:/workspace
- ~/.ssh/id_rsa:/root/.ssh/id_rsa:ro
- ~/.gitconfig:/root/.gitconfig:ro
working_dir: /workspace
command: sleep infinity
networks:
- thor-network
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: thor-backend
volumes:
- ./backend:/workspace/backend
- backend-venv:/workspace/backend/.venv
working_dir: /workspace/backend
environment:
- PYTHONUNBUFFERED=1
- OLLAMA_ENDPOINT=${OLLAMA_ENDPOINT}
- FRONTEND_ENDPOINT=${FRONTEND_ENDPOINT}
ports:
- "${BACKEND_PORT}:${BACKEND_PORT}"
command: sleep infinity
networks:
- thor-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: thor-frontend
volumes:
- ./frontend:/workspace/frontend
- frontend-node-modules:/workspace/frontend/node_modules
working_dir: /workspace/frontend
environment:
- NODE_ENV=development
- NODE_OPTIONS=--max-old-space-size=2048
ports:
- "${FRONTEND_PORT}:${FRONTEND_PORT}"
command: sleep infinity
networks:
- thor-network
# tunnel:
# image: cloudflare/cloudflared:latest
# restart: always
# command: tunnel --no-autoupdate run --url http://frontend:5173
# networks:
# - thor-network
tunnel:
image: cloudflare/cloudflared:latest
restart: always
environment:
- TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}
command: tunnel run
networks:
- thor-network
volumes:
backend-venv:
frontend-node-modules:
networks:
thor-network:
driver: bridge