File size: 631 Bytes
df4a1a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
services:
  app:
    build:
      context: .
      dockerfile: Dockerfile
    image: agent-pdf:latest
    container_name: agent-pdf
    ports:
      - "8001:8001"
    restart: unless-stopped

  zrok:
    image: openziti/zrok
    container_name: zrok-tunnel
    restart: unless-stopped
    depends_on:
      - app
    user: root
    environment:
      ZROK_ENABLE_TOKEN: ${ZROK_ENABLE_TOKEN:?Set ZROK_ENABLE_TOKEN in .env or environment}
    entrypoint: ["/bin/sh", "-lc"]
    command:
      - 'zrok status | grep -q "Account Token" || zrok enable --headless "$ZROK_ENABLE_TOKEN"; exec zrok share public http://app:8001 --headless'