-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.backend.yml
More file actions
58 lines (55 loc) · 1.44 KB
/
docker-compose.backend.yml
File metadata and controls
58 lines (55 loc) · 1.44 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
services:
backend:
build:
context: .
dockerfile: docker/remote-backend/Dockerfile
container_name: devmentorai-backend
environment:
DEVMENTORAI_PORT: ${BACKEND_PORT:-3847}
NODE_ENV: production
HTTP_PROXY: ${HTTP_PROXY:-}
HTTPS_PROXY: ${HTTPS_PROXY:-}
ALL_PROXY: ${ALL_PROXY:-}
NO_PROXY: ${NO_PROXY:-localhost,127.0.0.1,backend}
ports:
- "${BACKEND_PORT:-3847}:${BACKEND_PORT:-3847}"
user: "${HOST_UID:-1000}:${HOST_GID:-1000}"
volumes:
- ${HOST_DEVMENTOR_CONTAINER_DIR:-/home/botom/devmentor-container}/.copilot:/home/devmentor/.copilot
- ${HOST_DEVMENTOR_CONTAINER_DIR:-/home/botom/devmentor-container}/.devmentorai:/home/devmentor/.devmentorai
restart: unless-stopped
stdin_open: true
tty: true
networks:
- custom_net
ngrok:
image: ngrok/ngrok:latest
command:
- "http"
- "http://backend:${BACKEND_PORT:-3847}"
environment:
NGROK_AUTHTOKEN: ${NGROK_AUTHTOKEN:-}
ports:
- "4040:4040"
depends_on:
- backend
networks:
- custom_net
profiles:
- tunnel-ngrok
cloudflare:
image: cloudflare/cloudflared:latest
command:
- "tunnel"
- "--no-autoupdate"
- "--url"
- "http://backend:${BACKEND_PORT:-3847}"
depends_on:
- backend
networks:
- custom_net
profiles:
- tunnel-cloudflare
networks:
custom_net:
name: devmentorai_custom_net