-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 868 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 868 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
services:
go-app:
build:
context: .
dockerfile: Dockerfile
restart: always
userns: keep-id
ports:
- "8080:8080"
volumes:
- .:/usr/src:rw,Z
networks:
- cloudflare_tunnel_network
node-server:
build:
context: .
dockerfile: Dockerfile.Node
userns: keep-id
working_dir: /usr/src
restart: always
ports:
- "3000:3000"
command: >
sh -c "npm install && npm run build && node build"
networks:
- cloudflare_tunnel_network
cloudflared:
image: cloudflare/cloudflared:latest
container_name: cloudflared
restart: unless-stopped
environment:
TUNNEL_TOKEN: ${TUNNEL_TOKEN}
command: tunnel run --token $TUNNEL_TOKEN
networks:
- cloudflare_tunnel_network
networks:
cloudflare_tunnel_network:
name: cloudflare_tunnel_network